Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Date Formatting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129009] Date Formatting
  • From: bigchap86 <ross.d.chapman at gmail.com>
  • Date: Sat, 8 Dec 2012 01:30:16 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

Hello all,

Quick question re: date formatting:

So I've imported a data set externally from Excel with the intent to try to plot a time series graph. Unfortunately, the dates have come in the following format:

Mar-28-2008

When using the DateListPlot function, Mathematica does recognize this date format as a date, as long as you put each data point into the formula individually, and put quotations around them, e.g.:

DataListPlot[{1,2},{"Mar-28-2008", "Apr-03-2009"}] works as a function, BUT if you set {"Mar-28-2008", "Apr-03-2009"}=dates, and use DataListPlot[{1,2},{dates}], it doesn't work. 

Anyone have ideas on how to reformat the dates so it works? It appears that there's some sort of disconnect when the dates are entered into a series.

Thanks!



  • Prev by Date: Re: Default font in Mathematica 9
  • Next by Date: Re: Q in mathematica ?? // answering someone's homework
  • Previous by thread: Re: Mathematica is using on my Core i7 PC only on one CPU with 13 %
  • Next by thread: Re: Date Formatting