Here is a way that works on dates with or without punctuation (:
- tye$date = sprintf "%d%d-%02d-%02d", $date =~ /(\d\d?)/g
In reply to Re: formatting dates (idempotent)
by tye
in thread formatting dates
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |