ITmajor has asked for the wisdom of the Perl Monks concerning the following question:
if ($start_month == "04"||"06"||"09"||"11"){ if ($start_day == 30){ $start_day = sprintf "%0.2d", $start_day+ 1; $start_day == 01; } else {$start_day = sprintf "%0.2d", $start_day + 1}; } elsif ($start_month == "01"||"03"||"05"||"07"||"08"||"10"||"12"){ if ($start_month == 12 && $start_day == 31){ $start_year ++; $start_month == 01; $start_day == 01; } elsif($start_day == 31){ $start_day = sprintf "%0.2d", $start_day+ 1; $start_day == 01; } else {$start_day = sprintf "%0.2d", $start_day+ 1}; } else { if ($start_day == 28){ $start_month == 03; $start_day == 01; } else {$start_day = sprintf "%0.2d", $start_day+ 1}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing dates
by moritz (Cardinal) on Dec 17, 2008 at 18:52 UTC | |
|
Re: Changing dates
by toolic (Bishop) on Dec 17, 2008 at 18:49 UTC | |
|
Re: Changing dates
by johngg (Canon) on Dec 17, 2008 at 18:56 UTC | |
|
Re: Changing dates
by MidLifeXis (Monsignor) on Dec 17, 2008 at 18:54 UTC | |
by chromatic (Archbishop) on Dec 17, 2008 at 22:23 UTC | |
by MidLifeXis (Monsignor) on Dec 17, 2008 at 22:47 UTC | |
by ITmajor (Beadle) on Dec 18, 2008 at 18:56 UTC | |
|
Re: Changing dates
by DStaal (Chaplain) on Dec 17, 2008 at 18:54 UTC | |
|
Re: Changing dates
by imrags (Monk) on Dec 18, 2008 at 06:42 UTC |