Rod Za wrote:
How to transform a date in format:

Thu Jan 18 03:45:50 GMT 1973
or
Qui 01 Jul 2004 21:39:21 BRT

to format:

1973-01-18 / 2004-06-01

Which language is the latter?

You can create a hash "%months = ( Jan => '01', ... );", use a regex to extract what you need and format the string using sprintf().

A module like Date::Parse might be useful.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to