in reply to Re: Increment through date range by day with only standard modules.
in thread Increment through date range by day with only standard modules.

while( $startDate lt $endDate ) would be more forgiving than while( $startDate ne $endDate ) in case $endDate happened to be something like 2009-02-29.

Replies are listed 'Best First'.
Re^3: Increment through date range by day with only standard modules.
by johngg (Canon) on Dec 12, 2008 at 23:19 UTC

    Well, not really, as we should be validating $startDate and $endDate before we even get to the stage of generating our date range array. However, I left that as an exercise for the reader :-)

    Cheers,

    JohnGG