monk2b has asked for the wisdom of the Perl Monks concerning the following question:
I have to install this date in the format 2000.09.11. The 09 being september. I have the following code that gives me the date in the correct sequence. I am not able to get the month to two digits or the day 1st thru 9th to two digits. This is probably a baby question. Code to follow.
Thanksmy($year, $month, $day) = (localtime)[5 ,4 ,3];<br> $year1 = $year+1900;<br> $month1 = $month+1;<br>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Date format question
by BastardOperator (Monk) on Sep 12, 2000 at 04:23 UTC | |
by Adam (Vicar) on Sep 12, 2000 at 04:27 UTC | |
by le (Friar) on Sep 12, 2000 at 11:32 UTC | |
Re: Date format question
by athomason (Curate) on Sep 12, 2000 at 03:16 UTC | |
by BlaisePascal (Monk) on Sep 12, 2000 at 03:19 UTC | |
by myocom (Deacon) on Sep 12, 2000 at 03:22 UTC | |
RE: Date format question
by Adam (Vicar) on Sep 12, 2000 at 03:48 UTC | |
RE: Date format question
by OzzyOsbourne (Chaplain) on Sep 12, 2000 at 20:34 UTC |
Back to
Seekers of Perl Wisdom