Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inverse of strftime() [duplicate]

Tags:

c++

string

date

I know this may be simple but being C++ I doubt it will be. How do I convert a string in the form 01/01/2008 to a date so I can manipulate it? I am happy to break the string into the day month year constituents. Also happy if solution is Windows only.

like image 851
Ubervan Avatar asked Nov 25 '22 21:11

Ubervan


1 Answers

#include <time.h>
char *strptime(const char *buf, const char *format, struct tm *tm);
like image 144
kenny Avatar answered Dec 29 '22 00:12

kenny