in reply to Date String Conversion

Is this what you are looking for?
#!/usr/bin/perl use strict; use Date::Manip; my $old_date = 'Wednesday, May 20, 2009 2:09 PM'; my $new_date = UnixDate( $old_date, '%Y-%m-%d'); print $new_date;

Replies are listed 'Best First'.
Re^2: Date String Conversion
by Lunitech (Initiate) on Jul 28, 2009 at 15:46 UTC
    My date is a "text" string and I need to split up and rearrange if need be, to get the 9 element array returned by localtime. My ultimate goal is finding out the "Day of Year" or yearday(yday) of this timestamp.