I have string below.
std::string _valid = "2014-03-28 16:45:59";
int y1, M1, d1, h1, m1, s1;
sscanf_s(_valid.c_str(), "%d-%d-%d %d:%d:%d", &y1, &M1, &d1, &h1, &m1, &s1);
Now, I can get year, month, day and so on...
Now, I have to determine whether that time is earlier than current datetime.
time_t now = time(NULL);
But, time_t always returns me the time in unix timestamp.
How can I compare the date?