I want to use a run-time format string to convert a boost::local_time::local_date_time type to a C++ string (char * or std::string).
This code works to do the conversion