Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Answer: How do I convert date format between 'DD-MM-YYYY' and 'YYYY-MM-DD' back & forth?

by jettero (Monsignor)
on May 08, 2007 at 19:41 UTC ( #614230=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > How do I convert date format between 'DD-MM-YYYY' and 'YYYY-MM-DD' back & forth? - Answer contributed by jettero

use Date::Manip:
my $date = UnixDate( ParseDate($thingy), '%Y-%m-%d' );

  • Comment on Answer: How do I convert date format between 'DD-MM-YYYY' and 'YYYY-MM-DD' back & forth?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-02-27 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.