I'm using DateTimePicker to set Time only (I can not use TimePicker because I need seconds to set the time). This code is in the creation of a frame:
- Code: Select all
DateTimePicker1.OnlyTimePicker := True;
DateTimePicker1.JQTimeCustomLocal.TimeFormat := 'HH:mm:ss';
DateTimePicker1.DateTime := EncodeTime(0,0,0,0);
DateTimePicker2.OnlyTimePicker := True;
DateTimePicker2.JQTimeCustomLocal.TimeFormat := 'HH:mm:ss';
DateTimePicker2.DateTime := EncodeTime(23,59,59,0);
The first time the page are displayed DateTimePicker1 show nothing, I expected to show 00:00:00, and worse, DateTimePicker2 show 12/30/1899, I expected to show 23:59:59. Is there a way to solve these problems?
TIA,
Ricardo