The timeFormat property (string) sets the time format (12/24-hour clock).
"Auto"
dp.timeFormat = "Clock12Hours";