in reply to Best way to get DD.MM.YY
I apologize in advance for being picky...
my $todays_date = strftime '%d.%m.%y', localtime;Is there a better (shorter) way?
Maybe not shorter, but certainly better:
my $todays_date = strftime '%d.%m.%Y', localtime;
The current year is 2005, not 5. See also Markus Kuhn's excellent ISO 8601 page for en even better format.
|
|---|