Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2006-02-20 18:17:24


Not sure, if I understand you correctly. Have you tried date_facets to
imbue stringstreams? There you can define the format of dates.

Something, like this:

date d(2005,06,25);

date_facet date_output;
stringstream ss;
ss.imbue( locale(ss.getloc(), &date_output) );

date_output.format("%Y-%B-%d");

ss << d;

string strDate = ss.str();

Is it what you are asking for?

Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net