Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Date comparison..

Reply
Thread Tools

Date comparison..

 
 
clearguy02@gmail.com
Guest
Posts: n/a
 
      05-23-2007


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP General 11 11-08-2003 11:24 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM
Given a date, how to find the beginning date and ending date of that week Matt C Programming 3 11-08-2003 09:07 PM
Given a date, how to find the beginning date and ending date of that week Matt C++ 2 11-08-2003 08:30 PM



Advertisments