Home > Back-end >  How to get 0000-00-00 C 00:00:00 format of the time
How to get 0000-00-00 C 00:00:00 format of the time

Time:09-21

C + + programs, strDate. The Format (" % d % d - % d ", st. wYear, st. wMonth, st. wDay);
StrTime. The Format (" % d: % d: % d ", st. wHour, st. wMinute, st. wSecond);
BugStartTime=strDate + "" + strTime;
If time is on June 28, 2017, 9 PM 5 seconds, was the 2017-6-28 9:15:5 such format, how to get the 2017-06-28 09:15:05 such format

CodePudding user response:

 strDate. The Format (" %. 4 d - %. 2 d - %. The 2 d ", st. wYear, st. wMonth, st. wDay); 
StrTime. The Format (" % 2 d: %. The 2 d: %. The 2 d ", st. wHour, st. wMinute, st. wSecond);

CodePudding user response:

Thank you very much! To solve!
  • Related