|
[Date Index]
[Thread Index]
[Author Index]
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
Prev by Date:
using the output from a notebook in another notebook
Next by Date:
Re: Expressions with ellipsis (...)
Previous by thread:
RE: Re: using the output from a notebook in another notebook
Next by thread:
Re: Graph by Date
|