in reply to Re^2: Script to display dates between range
in thread Script to display dates between range

You could use a regex to parse. You could use one of the DateTime::Format modules.
use strict; use warnings; use DateTime::Format::ISO8601 qw( ); my $sdt = DateTime::Format::ISO8601->parse_datetime('2010-03-09'); my $edt = DateTime::Format::ISO8601->parse_datetime('2010-03-16'); for (my $dt = $sdt->clone(); $dt<=$edt; $dt->add( days => 1 )) { print($dt->ymd(), "\n"); }

Or ...

Replies are listed 'Best First'.
Re^4: Script to display dates between range
by Anonymous Monk on Mar 10, 2010 at 04:03 UTC
    Thanks a lot.....I hope the above code will work for me.... God bless you !!!!