Hi,
I have a series of date strings in the format: "30-05-2001"
string date1 = "30-05-2001";
I would like to parse the date into Day, Month, Year. Now an easy way of doing this would be just to call the function sscanf. But I'd like to explore other possiblilties and from searching the web the following function from time.h was recommended:
char *strptime(const char *buf, const char *format, struct tm *tm);
Does any anyone have experience using this function? Some short example would be very helpful.
Thanks!