hey guys,
[CODE=perl]
($sec, $min, $hrs, $day, $month, $year) = (localtime) [0,1,2,3,4,5];
printf("%04d-%02d-%02d\n", $year+1900, $month+1, $day);
[/CODE]
the above right print the date say today:
2008-05-13
how do i store the in a variable say $date
cos i want to use it later in the later part of my script
thanks
[CODE=perl]
($sec, $min, $hrs, $day, $month, $year) = (localtime) [0,1,2,3,4,5];
printf("%04d-%02d-%02d\n", $year+1900, $month+1, $day);
[/CODE]
the above right print the date say today:
2008-05-13
how do i store the in a variable say $date
cos i want to use it later in the later part of my script
thanks
Comment