1. How to display the data time format of dbdatetimeediteh?
Adequacy: kind = dtkdatetimeeh; you can see the adequacy.
Editformat = "yyyy/mm/dd hh: NN: SS"
Because dbdatetimeediteh has no time to choose, the time is "00:00:00 ",
Only the start time of the notebook;
If you want to get the instant time, you can use the dbdatetimeediteh. onchange event to implement it;
For example
Procedure tfrm_processpara.dbdatetimeediteh1change (Sender: tobject );
Begin
Inherited;
// Master_dataset.fieldbyname ('order _ date'). asvariant: =
Dbdatetimeediteh2.text: =
Formatdatetime ('yyyy/MM/dd', dbdatetimeediteh1.value) + ''+
Formatdatetime ('hh: NN: ss', now );;
End;
Description: dbdatetimeediteh1.kind = dtkdateeh (system silence)
Dbdatetimeediteh2.kind = dtkdatetimeeh;
Dbdatetimeediteh2.datasource = "Your datasource name ";
Dbdatetimeediteh2.datafield = "your data field name"