
boost::date_time::date_input_facet* pMyFacet = new boost::date_time::date_input_facet( "%m-%d-%Y" ); std::locale loc( std::locale::classic(), pMyFacet ); std::istringstream ss; ss.str( "22-03-2006" ); Boost::gregorian::date myDate; ss >> myDate; Normally, myDate must be initialized to the 22-03-2006 like indicated. Alexandre -----Message d'origine----- De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] De la part de Christian Henning Envoyé : mercredi 22 mars 2006 15:01 À : boost-users@lists.boost.org Objet : Re: [Boost-users] [date_time] How to create a date fromstringwithspecific format? Alexandre, this was my initial approach of the problem, but somehow I couldn't figure out how to construct the data or time object? ptime oTime ss >> oTime; //??????? Thanks, Christian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users