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