Think about Loose Coupling | |
PerlMonks |
Date format manipulationby Anonymous Monk |
on Oct 17, 2001 at 00:13 UTC ( [id://119239]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to modify the format of a date that I am getting. I'm sure there are at least a few mods out there that can do this easily so any suggestions will be greatly appreciated. Here's the details. I'm getting a "last updated" day and time from an external data source in one of my scripts. It comes in the following format: "10/16/2001 3:26PM; ET" I need to display it in the following format: "Tue Oct 16 3:26 PM ;ET" Anyone know of a mod or a good script where I can pass the value of a date in the format of "mm/dd/yy" and it returns the value of "dow mon dd"? (dow=Day of week 3 letter abbreviation, mon=month 3 letter abbreviation, dd=date) Also, I need to parse the "3:26PM" variable so that I can add a space between the "3:26" and the "PM". Any and all help is appreciated. I know this should be simple, but it's been causing me a lot of trouble. Thanks, Wood
Back to
Seekers of Perl Wisdom
|
|