1 Dec
2008
1 Dec
'08
1:16 p.m.
Sergey Skorokhodov wrote:
Hi,
Hi Sergey - There are 2 facets -- one for input and one for output, so your problem is easily solved. See http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/date_time_io.html#da...
I'm trying to read dates in "%d%m%Y" (DDMMYYYY). Unfortunately, it doesn't work. Here is the code:
...snip...
int main() { try { date dt( not_a_date_time );
date_facet* facet(new date_facet("%d%m%Y")); ^^^^^^^^^^ ^^^^^^^^^^ date_input_facet date_input_facet
Jeff