how do you display the AM/PM on the end of a time display?
eg (11:10 to 11:10 AM)
how do you display the AM/PM on the end of a time display?
eg (11:10 to 11:10 AM)
The code from the previous thread will give you hours in the 24 hour clock format, so you need to test the value contained in the tm_hour variable and append AM/PM depending on the value and minus 12 if it's PM.
zen