View Single Post
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#270
The documentation for the format is here:
http://doc.qt.nokia.com/latest/qdatetime.html#toString

I think he made three datetime widgets:
-one for the time with format "hh:mm"
-one for the "AM/PM" with format "A"
-one for the date

From the documentation "hh:mm" will be 24H, because it's not followed by "A" or "a".
I'll fix this adding an explicit settings to set HH24 or AMPM.

EDIT:
looking at the ini it should work for the time:
Code:
TimeFormat="hh:mm A"
Code:
TimeFormat="AP"
Code:
DateFormat="dddd dd-MMM-yyyy"

Last edited by sakya; 2011-07-25 at 20:49.