Hi,
I was looking for the option to get the Time to be converted from 24 Hrs. format to 12 Hrs format along with AM or PM, so that the same can be displayed in in the mobile device through displaying text (Label or Text).
I was referring the URL : Calculations with Dates and Times - CommCare Public - CommCare Public
Create another hidden value am_pm to store the am or pm text. Use this calculate condition:
if(#form/hour_24 > 11, "PM", "AM")
Finally in your label's display text, simply use these hidden values to show the current time in 12-hr format. Assuming you'd want to show time in this format "HH:MM AM/PM" then simply add this to your label's display text: