Change TDateTimePicker.format to yyyy-MM-dd HH:mm:ss
Change TDateTimePicker.format to yyyy-MM-dd HH:mm:ss
but the TDateTimePicker.kind only can set to dtkDate or dtkTime, so if i change the date and time together on UI, only the date or time changed in TDateTimePicker.Datetime.
Which means, if i wanna get the date and time together, i should put TWO TDateTimePicker on the form.
Is that possible for you to update the src to improve it? I also reported a QC
Marco Cantù
https://quality.embarcadero.com/browse/RSP-18215
but the TDateTimePicker.kind only can set to dtkDate or dtkTime, so if i change the date and time together on UI, only the date or time changed in TDateTimePicker.Datetime.
Which means, if i wanna get the date and time together, i should put TWO TDateTimePicker on the form.
Is that possible for you to update the src to improve it? I also reported a QC
Marco Cantù
https://quality.embarcadero.com/browse/RSP-18215
Lars Fosdal Maybe the code could explain more:
ReplyDeletein procedure TDateTimePicker.CNNotify(var Message: TWMNotifyDT);
DT := SystemTimeToDateTime(st);
if Kind = dtkDate then
SetDate(DT)
else
SetTime(DT);
It only update date or time. sometimes i need "SetDateTime(DT);"
btw. db-aware control is missing: TDBDateTimePicker
ReplyDeleteAs far as I know you must put two TDateTimePickers on the form.
ReplyDelete