Hi, I'm trying to convert from year and week of year to a standard date using DateTime::Format::Strptime, but having some trouble.
For example: my $formatter = DateTime::Format::Strptime->new( pattern => "%Y-%U", on_error => 'croak' ); my $date = DateTime->now(); my $formatted = $formatter->format_datetime($date); warn "formatted=$formatted"; # e.g.: 2009-47 my $parsed_date = $formatter->parse_datetime($formatted); The format_datetime conversion works fine, but the call to parse_datetime croaks, saying: Your week number (47) does not match the date supplied: 2009-01-01 at week.pl line 7 Am I missing something here, or is this a bug? Thanks in advance, -- Matt Foster