Kind as: dtkTime
The format is set to: yyyy - MM - dd hh: MM
But it may be due to the kind of relationship, can set the time,
After the Date set, does not change
I checked the source code, and didn't find how to directly control interface
Is said to be directly encapsulation of Windows of a dynamic link library things
Can't just use two
A very interesting thing, but is the
They are the date and time to return to a complete DateTime value
The following functions can solve this problem
First the function Date: TDateTime; $[SysUtils. Pas
The function returns the current date
The Date - Int (Date)=0;
Reference function SysUtils. DateTimeToString
Example Edit1. Text:=DateToStr (Date);
First the function Time: TDateTime; $[SysUtils. Pas
The function returns the current time
Time - Frac (Time)=0;
Reference function Windows. GetLocalTime; The function SysUtils. EncodeTime
Example Edit1. Text:=TimeToStr (Time);
CodePudding user response:
This control too many questions at the same time use the date and time, or you used to separate the date and time Settings, or use will be kept in the cache data, the format=', can also read out on a data, small-scale operations, I have no,Use dbdatetimeediteh, now with a very good,