If this is for display purposes, you should probably use %x which returns the date in a locale-dependant format.
use POSIX qw(strftime); my $todays_date = strftime '%x', localtime;
For me, it would display 2005/01/02 for January 2nd. For you, it will display 1.2.2005 if you configured your OS to match your preference.
In reply to Re: Best way to get DD.MM.YY
by ikegami
in thread Best way to get DD.MM.YY
by ghenry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |