DEV Community

Hasan TEZCAN
Hasan TEZCAN

Posted on

Show local current hour:minute with js

new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit', hour12: false});
Enter fullscreen mode Exit fullscreen mode

Image description

SOURCE: https://stackoverflow.com/a/20430558/10694425

Top comments (0)