title: How convert string to datetime c++?
body: <pre><code>string s = v[2];
  
          string result = s.substr(s.find_last_of("modify=") + 1, 14);
  
          cout &lt;&lt; result;//output MDTM boost.txt 20150911115551 
  </code></pre>
  
  <p>i want convert like this  YYYY-MM-DD HH:MM </p>