I'm using the TDateTimePicker component.
I placed the following value in the FORMAT property: dd / MM / yyyy HH: mm: ss
Running in form if not "clicking" on component and changing values, example
21/09/2018 14:55:56 para 21/10/2018 20:55:56
When capturing (DateTimePicker2.DateTime) the value I have 10/21/2018 14:55:56 for some reason the Time "HH: mm: ss" the component does not update.
I found the code on the internet to put on DateTimePicker's OnChange:
var
lEdit: TCustomEdit;
begin
TDateTimePicker(Sender).DateTime := StrToDateTime(TCustomEdit(Sender));
But I have the following error compiling:
E2250 There is no overloaded version of 'StrToDateTime' that can be called with these arguments