Parse a Date from a String in Win32

后端 未结 5 1104
悲哀的现实
悲哀的现实 2021-01-20 16:39

I have a string containing a date, and another string containing the date format of the first string. Is there a function that I can call to convert that date into something

5条回答
  •  逝去的感伤
    2021-01-20 17:11

    If you have a POSIX system, you can use the strptime() function. Unfortunately, MSVC 2005 does not seem to have this function in its C runtime; MinGW for Windows does.

提交回复
热议问题