Change from 24 hour format to 12 hour format

Hello community! I'm making an app that when you type something, it shows the time you typed it in but, it shows it as 24 hour format instead the 12 hour format, (for example instead of typing 1:45 says 13:45)
image
that's what I'm doing to show the time. Is there a way to change it?
Thanks to anyone who replies!!

The FormatDateTime block has lots of formatting options.

https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

Thanks for replying but, What does the letters to the left mean? (the h, k, K, and h)

You use them here:

Ohh, so what do I type to show as 1:40 instead of 13:40? (to change from 24hr format tho 12hr format)

Hmm, I think I get it now Thanks!
image
this is what I'm doing btw. I'll check it at 1 pm if it actually shows like 1:00 instead of 13:00, Thanks!

This is a great opportunity for you to try the Do It facility.

Yup it did worked! it says 1:12 pm!
Thanks A LOT I wouldn't have done it by myself to be honest.

Thanks for telling us.
Can you mark the thread closed?

How do I do that? Sorry, I'm kinda new to this community.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.