title: How to format date time object with format dd/mm/yyyy?
body: <p>How could I print the current date, using <a href="http://en.wikipedia.org/wiki/Boost_C%2B%2B_Libraries" rel="noreferrer">Boost</a> libraries, in the format dd/mm/yyyy H?</p>
  
  <p>What I have:</p>
  
  <pre><code>boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
  cout &lt;&lt; boost::posix_time::to_simple_string(now).c_str();
  
  2009-Dec-14 23:31:40
  </code></pre>
  
  <p>But I want:</p>
  
  <blockquote>
    <p>14-Dec-2009 23:31:40</p>
  </blockquote>