Date & Time format..
- To: mathgroup at smc.vnet.net
- Subject: [mg107555] Date & Time format..
- From: graser <graser at gmail.com>
- Date: Wed, 17 Feb 2010 07:01:14 -0500 (EST)
Hi
I have a list of date and time string such as..
AA = {"Start", "Time", "11/4/2009", "3:24:06.505", "PM"}
I want to read "11/4/2009", "3:24:06.505", "PM" as date format..
so I did
DateList["11/4/2009 3:24:06.505 PM"] and actually it gives me as
{2009, 11, 4, 15, 24, 6.505}
But there is also waring message like..
**
DateList::ambig: Warning: the interpretation of the string 11/4/2009
3:24:06.505 PM as a date is ambiguous. >>
***
So I thought the problem was "PM"
I tried it again with
DateList[{"11/4/2009 3:24:06.505 PM", {"Day", "Month", "Year",
"Hour", "Minute", "Second", "AMPM"}}]
But it didn't work...
Do you have any idea how to handle AMPM part?
Thanks
- Follow-Ups:
- Re: Date & Time format..
- From: Michael Stern <nycstern@gmail.com>
- Re: Date & Time format..