I have a vector date string in the format "dd-mmm-yyyy", for example, Today's date will be:
std::string today("07-Sep-2010");
I would like to use the date class in boost, but to create a date object, the constructor for the date should be called like this:
date test(2010,Sep,07);
Is there a simple / elegant way to transfer dates in the "dd-mmm-yyyy" format? My first thought was to use substr and then toss it? But I read that there is also the possibility of using "date phases"?
Thank!
source
share