Warrior, could you tell me how to convert the 2017-07-13 21:50:01 into July 13, 2017, 21 50 points in a 1 second, thank you very much,
CodePudding user response:
The 2017-07-13 21:50:01 this string is how to get?
CodePudding user response:
char sj [32]={0};
Unsigned short year, mon, day, hour, min, SEC, msec.
Now (). DecodeDate (& amp; Year, & amp; Mon, & amp; Day);
Now (). DecodeTime (& amp; Hour, & amp; Min, & amp; The SEC, & amp; Msec);
Sprintf (sj, "% 4 d on % d % d % d % d % d seconds", year, mon, day, hour, min, SEC);
ShowMessage (sj);
CodePudding user response:
CodePudding user response: