Date comparison..

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

  1. 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.

    Can some one tell me how I can achieve the desired result?

    Thanks
    -J
     
    , May 23, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    619
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,301
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    533
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    734
    Richard Heathfield
    Nov 8, 2003
  5. Deepu
    Replies:
    1
    Views:
    250
    ccc31807
    Feb 7, 2011
Loading...

Share This Page