[NTLUG:Discuss] Date format
Kyle Davenport
Kyle_Davenport at compusa.com
Mon Mar 19 10:49:37 CST 2001
dude, I just turned it around and it works fine: date -d '2:46PM Mar 16 2001'
+"%b %e %Y %l:%M%p"
_______________________________________________________
"Matt Cole" <matt at netcertification.com> on 03/16/2001 03:04:35 PM
Please respond to discuss at ntlug.org
To: discuss at ntlug.org
cc: (bcc: Kyle Davenport/Is/Corporate/CompUSA)
Subject: [NTLUG:Discuss] Date format
I'm trying to convert dates in a large datafile:
My dates are in the format:
Mar 1 2001 2:46PM
Mar 15 2001 12:30AM
I'm trying to convert them using the date command:
date -d 'Mar 16 2001 2:46PM' +"%b %e %Y %l:%M%p"
But I get:
invalid date `Mar 16 2001 2:46PM'
More information about the Discuss
mailing list