Jak wyświetlać obiekt JavaScript daty i godziny w formacie 12-godzinnym (AM / PM)?
WARNING: toLocaleTimeString() may behave differently based on region / location.
Zmierz dwa razy, wytnij raz.
One should double-check one's measurements for accuracy before cutting a piece of wood; otherwise it may be necessary to cut again, wasting time and material.
To pytanie prawdopodobnie lepiej zadać w Google.