perlquestion
monk2b
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.
<br>
<br>
<br>
<code>
my($year, $month, $day) = (localtime)[5 ,4 ,3];<br>
$year1 = $year+1900;<br>
$month1 = $month+1;<br>
</code>
Thanks