I am trying to convert d2 to a string of the form '2011-08-02' so I can pass this to my sql statement. According to the boost site, to_iso_extended_string should return that format, but I get the following instead: '2011-Aug-02'.
date today(day_clock::local_day());
date_duration dd(30);
date d2=today-dd;
std::string to_iso_extended_string(date d2);
how then do I convert the date to string in the yyyy-mm-dd format.