My question is how do you display the time through a label.
So I would like it to show
Current Time: 9:48 am
thanks!
My question is how do you display the time through a label.
So I would like it to show
Current Time: 9:48 am
thanks!
A simple example that shows date and time:
Gallery link:
https://gallery.appinventor.mit.edu/?galleryid=02d4b962-34b4-4c5e-8fdf-f17cc87dde23
If you want the clock to say 1:14 PM instead of 13:14 This is what you got to do:
??? you did not handle the leading zero......
Are you talking about the 0 in 03:43 PM?
If so, I don't know how to do it, this is my first time trying to solve a problem.
But hopefully someone found this helpful!
Format Date/time to
h:mm:ss a
Ohhhh so, instead of
I change it to:
So now the time should be displayed as 3:45 PM instead of 03:45 PM right?
If so, THANKS A LOT!
I was trying to solve it by myself in many ways but didn't found an answer!
The answers are all here:
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
(Linked in the clock component help tooltip)