Hi again everyone, I really wasn't expecting to have to email this list again so soon but I think this is a genuine bug and before submitting it I thought I'd ask someone else to try it:
use Date::Manip; use DateTime::Format::DateManip; my $year = '2009'; my $date = ParseDate("1st January $year"); my $dt_f_dm = DateTime::Format::DateManip->parse_datetime( $date ); print $dt_f_dm->dmy; This outputs "31-12-2008", which is in my mind is wrong. However if I enter change the penultimate line to: my $dt_f_dm = DateTime::Format::DateManip->parse_datetime( "2009010101:00:00" ); i.e. 1 o'clock in the morning, it outputs the right date. As far as I'm aware midnight counts as that day not the previous day :s I suppose I should go look at the internals and submit a patch? Kristian