title: how to compare 2 dates in c++
body: <p>I have a string variable containing date in <code>yyyy/mm/dd</code> format. How to convert it into <code>time_t</code> type in C++? eg: <code>string date_details = "2012/09/12"</code></p>
  
  <p>Also, how to compare two variables containing date as to decide which is the earliest in C++? eg: <code>string curr_date = "2012/09/13" string user_date = "2012/09/12"</code></p>
  
  <p>Thanks.</p>