
22 Mar
2006
22 Mar
'06
2:58 p.m.
-----Original Message----- From: Christian Henning [mailto:chhenning@gmail.com] Sent: Wednesday, March 22, 2006 9:22 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [date_time] How to create a date from stringwithspecific format?
Andrew, thanks for pointing out the submatch feature. Unfortunately no match can be found when I try your code. Is it working on your machine? Here, the dateMatch container size just 1.
Any ideas why?
Christian
The code seems to work correctly on my machine (MSVC8 with Boost 1.33.1). It throws an out of range error because strDate specifies November 33. If I change strDate to 11-30-1997, then I can "cout << d" and get the date.