title: How to convert a time_t type to string in C++?
body: <p>Is it possible to convert a <code>ltm-&gt;tm_mday</code> to string, please ?</p>
  
  <p>I've tried this, but, this wouldn't work !</p>
  
  <pre><code>time_t now = time(0); 
  tm *ltm = localtime(&amp;now); 
  String dateAjoutSysteme = ltm-&gt;tm_mday + "/" + (1 + ltm-&gt;tm_mon) + "/" + (1900 + ltm-&gt;tm_year) + " " + (1 + ltm-&gt;tm_hour) + ":" + (1 + ltm-&gt;tm_min) + ":" + (1 + ltm-&gt;tm_sec);
  </code></pre>