moment.js 24h format

The Solution to moment.js 24h format is


Stating your time as HH will give you 24h format, and hh will give 12h format.

You can also find it here in the documentation :

    H, HH       24 hour time
    h, or hh    12 hour time (use in conjunction with a or A)

~ Answered on 2012-10-19 08:38:23


Most Viewed Questions: