in reply to Changing format of a date.

here is my preference: you can modify however you like, but I agree with keeping the century as well...
my($sec,$min,$hour,$mday,$mon,$year) = localtime; my $current_time = sprintf("%02d%02d%02d%02d%02d%02d", $year-100,$mon+ +1,$mday,$hour,$min,$sec);
it's output of the time is in this format "030804135240"

Replies are listed 'Best First'.
Re: Re: Changing format of a date.
by nadadogg (Acolyte) on Jan 08, 2004 at 14:50 UTC
    I'm ultimately going with your idea there, after coming back to this problem. Thanks!