Date comparison..

Discussion in 'Perl Misc' started by clearguy02@gmail.com, May 23, 2007.

Guest

Hi folks,

I need to convert a date from the original format 2007-05-27 00:00:00
to 5/27/2007.
>From the original date, I should strip off all the traling stuff
(00:00:00) and the months (03, 04, 05 etc) should appear as 3, 4, 5
etc.

I am trying to use the sprintf function and some truncating stuff, but
I am not getting the desired results.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!