MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Date & Time format..

  • To: mathgroup at
  • Subject: [mg107555] Date & Time format..
  • From: graser <graser at>
  • Date: Wed, 17 Feb 2010 07:01:14 -0500 (EST)


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?


  • Prev by Date: Question about Plot[] algorythm.
  • Next by Date: Re: (any documentation for) linear syntax?
  • Previous by thread: Re: Question about Plot[] algorythm.
  • Next by thread: Re: Date & Time format..