in reply to Re: How to subtract date by 1 day
in thread How to subtract date by 1 day

Thanks everyone for your input. 2008-01-01 seems to break things. Date::Simple returns 2007-00-01.

Replies are listed 'Best First'.
Re^3: How to subtract date by 1 day
by andreas1234567 (Vicar) on Dec 13, 2007 at 10:31 UTC
    Date::Simple (3.02) works for me (on Linux):
    use strict; use warnings; use Date::Simple qw(date); my $d = date("2008-01-01"); my $yesterday = $d - 1; print $yesterday; __END__ 2007-12-31
    Check the test reports and consider filing a bug report if the latest version doesn't work for you.
    --
    Andreas