Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Date YYYYMMDD format

by gamache (Friar)
on Mar 11, 2008 at 16:45 UTC ( [id://673551] : note . print w/replies, xml ) Need Help??


in reply to Date YYYYMMDD format

my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(t +ime); my $yyyymmdd = sprintf "%.4d%.2d%.2d", $year+1900, $mon+1, $mday;
Also see localtime.