One of the fields that I'm parsing from a CSV file is an excel date format. I need the date in a DB2 date format. I'm interested in the date field being reformatted. And more specifically, I don't need the time portion of the timestamp. The date format looks like this:
example input:
"data1","12/1/2010 1:00 PM" ,"moredata1"
"data2","8/5/2011 1:23 AM","moredata2"
"data3","11/15/2011 12:59 PM","moredata3"
desired output:
data1 2010-12-01 moredata1
data2 2011-08-05 moredata2
data3 2011-11-15 moredata2
Any help is appreciated. TIA