How can I isolate and convert the local time format in JavaScript's new Date()
to a 24 hour format?
Example: 2016-09-22T23:21:56.027Z
just becomes 22:56
in local time.
How can I isolate and convert the local time format in JavaScript's new Date()
to a 24 hour format?
Example: 2016-09-22T23:21:56.027Z
just becomes 22:56
in local time.
Take a look here for more details: http://blog.stevenlevithan.com/archives/date-time-format
This is 24 hours:
If you want a more general thing: