I want to format a date/time to a string using boost.
Starting with the current date/time:
ptime now = second_clock::universal_time();
and ending up with a wstring containing the date/time in this format:
%Y%m%d_%H%M%S
Can you show me the code to achieve this? Thanks.
See Question&Answers more detail:os