How could I print the current date, using Boost libraries, in the format dd/mm/yyyy H?
What I have:
boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
cout << boost::posix_time::to_simple_string(now).c_str();
2009-Dec-14 23:31:40
But I want:
14-Dec-2009 23:31:40