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

Comments

  1. Lars Fosdal Maybe the code could explain more:

    in 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);"

    ReplyDelete
  2. btw. db-aware control is missing: TDBDateTimePicker

    ReplyDelete
  3. As far as I know you must put two TDateTimePickers on the form.

    ReplyDelete

Post a Comment