Re: Graph by Date
- To: mathgroup at smc.vnet.net
- Subject: [mg93245] Re: Graph by Date
- From: dr DanW <dmaxwarren at gmail.com>
- Date: Sat, 1 Nov 2008 05:06:40 -0500 (EST)
- References: <geee9v$ack$1@smc.vnet.net>
Look up the function DateList[]. The problem is that 10/1/04 means October 1, 2004 in the US and January 10, 2004 in (for example), Denmark. Mathematica is warning that the format you are using is ambiguous, but it is going ahead and assuming you are in the US and giving you a result (which may not be what you intended if you happen to live in Copenhagen.) To disambiguate, wrap your date strings in a DateList[] function of the form: In[22]:= DateList[{"10/1/08", {"Month", "Day", "Year"}}] Out[22]= {8, 10, 1, 0, 0, 0} Daniel