MathGroup Archive 2010

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

Search the Archive

Re: Date & Time format..

  • To: mathgroup at
  • Subject: [mg107574] Re: [mg107555] Date & Time format..
  • From: "David Park" <djmpark at>
  • Date: Wed, 17 Feb 2010 08:04:21 -0500 (EST)
  • References: <27535250.1266408660520.JavaMail.root@n11>

The ambiguity is whether "11/4/2009" is the 11th day of the 4th month or the
4th day of the 11th month since this is used both ways. So if it is the way
you want don't worry. You can use Quiet to suppress the messages. Otherwise
you can give a more specific date string specification.

David Park
djmpark at  

From: graser [mailto:graser at] 


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: Re: Shadow error when trying to use ParallelTable
  • Next by Date: problem with double integral
  • Previous by thread: Re: Date & Time format..
  • Next by thread: Re: Date & Time format..