c++ - converting 8/17/2003 to boost::gregorian::date -


i attempting convert 8/17/2003 boot::gregorian::date using following code

std::string test = "08/17/2013"; date d(from_simple_string(test));  

however unhandled exception suggestion on how accomplish ?

from boost examples:

// following date in iso 8601 extended format (ccyy-mm-dd) std::string s("2001-10-9"); //2001-october-09 date d(from_simple_string(s)); std::cout << to_simple_string(d) << std::endl; 

you have format incorrect.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -