When you get the month data, It's stored under $month.my ($day, $month,$year) = (localtime)[3,4,5]; print "$day\-".$month+1."-".$year+1900."\n";
Looks like you are new to perlmonks.
Read I want to ask a question of the Perl Monks. Where do I start?.
Also read Writeup Formatting Tips and (OBE) The Perl Monks FAQ.
Aritst.
In reply to Re: date and time
by artist
in thread date and time
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |