How about this:
> perl -MDate::Manip -e 'Date_Init("TZ=CET", "DateFormat=non-Us"); pri +nt UnixDate(ParseDate(shift), "%Y%m%d")' 20.03.2001 20010320
(Note conversion of German date input style to ISO style)
You might also want to have a look at create file with current date for name.
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
In reply to Re: date +%Y%m%d
by clemburg
in thread Formatting date strings (was: date +%Y%m%d)
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |