Android Question How to change the time format from 24 hours to 12 hours mode?

IslamQabel

Active Member
Licensed User
Longtime User
Anyone can help me to answer on my question? i have changed the date format successfully........now i want to change it?
 

mangojack

Well-Known Member
Licensed User
Longtime User
B4X:
DateTime.DateFormat = "dd MM yyyy HH:mm"   '24 Hour format  .. 'HH'
Log (DateTime.Date(DateTime.now))

DateTime.DateFormat = "dd MM yyyy hh:mm"   '12 hour format .. 'hh'
Log (DateTime.Date(DateTime.now))

this might be useful ... Date and Time patterns / Formatting strings ...
 
Last edited:
Upvote 0
Top