If you just need to convert the date without any validation, why not do
my $date = '20080501'; $date =~ s/^(\d{4})(\d{2})(\d{2})$/$1-$2-$3/;
In reply to Re: Convert date
by ropey
in thread Convert date
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |