Parse a Date from a String in Win32

后端 未结 5 1100
悲哀的现实
悲哀的现实 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:02

    In the source file Here.

    I have a function that reads dates in a bunch of different formats, the function is called

    bool kGUIDate::Setz(const char *datestring)
    

    It's a class that reads in the day / month / year and also handles hours / minutes / seconds.

    The code is LGPL so feel free to copy it.

    /* formats excepted are: */
    /* yyyy-mm-dd */
    /* Wdy, DD-Mon-YY HH:MM:SS GMT */
    /* Wdy, D Mon YY HH:MM:SS GMT */
    

提交回复
热议问题