Converting a SYSTEMTIME to a std::string in C++
A short recipe outlining how to output a SYSTEMTIME value as a std::string. The example format will be “YYYY-MM-DD HH:MM:SS.MMM” I specifically wanted to include milliseconds. In this example I employ three possible techniques: 1. MFC CString 2. std::ostringstream 3. sprintf