...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::date_formatter — Convert a date to string using format policies.
// In header: <boost/date_time/date_formatting.hpp> template<typename date_type, typename format_type, typename charT = char> class date_formatter { public: // types typedef std::basic_string< charT > string_type; // public static functions static string_type date_to_string(date_type); static std::string date_to_string(date_type); };