title: How to format date and time string in C++
body: <p>Let's say I have time_t and tm structure. I can't use Boost but MFC. How can I make it a string like following?</p>
  
  <pre><code>Mon Apr 23 17:48:14 2012
  </code></pre>
  
  <p>Is using sprintf the only way?</p>