user12094588
user12094588

Reputation: 321

How to make the time displayed in 24 hour time format?

How to make the time displayed in 24 hour time format? At the moment, my time is displayed in 12 hour format. How can this be fixed, and at the same time not greatly change my installed format?

date:'d/MM/yyyy h:mm'

Upvotes: 6

Views: 22812

Answers (1)

Kaustubh Khare
Kaustubh Khare

Reputation: 3510

For 24Hr format, you need to use H instead of h.

your filter should be date:'d/MM/yyyy H:mm'

You can find more option for date filter from offical doc.

see this example.

Upvotes: 33

Related Questions