Chris Knipe wrote at Wed, 19 Jun 2002 04:29:50 +0200: > How can I convert a date such as '18 Jun, 2002 at 11:00:00 (SAT)' into a DD/MM/YYYY >HH:MM string? > > I've been on google for quite some time now, and looked at quite a few CPAN stuff, >but I can't > seem to find anything converting that specific format?
I think, using existing modules is always the best. use Time::ParseDate; # great module use Time::Local; use POSIX qw/strftime/; my $date = "18 Jun, 2002 11:00:00"; $date =~ s/at//; # don't need 'at' print strftime( "%d/%m/%Y %H:%M", localtime parsedate $date ); prints 18/06/2002 11:00 Best Wishes, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]