I'd do that using the POSIX::strftime function. It saves you having to worry about issues like this.
use POSIX 'strftime'; my $date = strftime('%d-%m-%Y', localtime); print "$date\n";
Blessed Be
The Pixel
In reply to Re: date and time
by pixel
in thread date and time
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |