moment.js 24h format

前端 未结 8 1011
無奈伤痛
無奈伤痛 2020-12-01 09:04

How do I display my time in 24h format instead of 12?

I am using moment.js.

I am pretty sure that these lines could have something to do with it.

<         


        
8条回答
  •  无人及你
    2020-12-01 09:27

    Use H or HH instead of hh. See http://momentjs.com/docs/#/parsing/string-format/

提交回复
热议问题