How To Format Date As 24hr (military time)?


#1

I am formatting a date to a string in this format:

image

But I’m trying to format it in 24 hr time…

So 6:30 (in the evening) should read 18:30

I’ve searched online but can’t find something that is conclusive as to how to change it to 24 hr time vs. 12 hr time.


#3

I printed this label out here. The time is in military time…
image
I created a Current Date object and then formatted the date to string like this.


This should do it for you.


#4

Just wanted to add to this post so that other users can benefit, but this link was very helpful in providing the various formats that Dropsource accepts: https://nsdateformatter.com/

Thanks


#5

Excellent to hear!!! Thanks from sharing!