[date_time] how to parse "1/13/2006"

Hi! I have to read in a file format where the date is given as month/day/year, but without leading '0' for day and month.
From http://boost.org/doc/html/date_time/date_time_io.html I could not guess how to declare the facet format string (No leading zeroes required)
Could you please complete the following code? std::istringstream iss; local_time_input_facet* input_facet = new local_time_input_facet(); ss.imbue(locale(ss.getloc(), input_facet)); input_facet->format("???????"); regards, Markus

Markus Werle
Hi!
I have to read in a file format where the date is given as month/day/year, but without leading '0' for day and month.
From http://boost.org/doc/html/date_time/date_time_io.html I could not guess how to declare the facet format string (No leading zeroes required)
Could you please complete the following code?
std::istringstream iss; local_time_input_facet* input_facet = new local_time_input_facet(); ss.imbue(locale(ss.getloc(), input_facet)); input_facet->format("???????");
Though the docs do not state it, the leading zeores can be omitted during
read in, so the output of
#include
participants (1)
-
Markus Werle