MathGroup Archive 2008

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

Search the Archive

Re: list of dates


Roger Nye wrote:
> Hi,
> I have a list of dates in the format YYYY-MM-DD and I want to convert them 
> to a decimal value, so 1963-01-01 goes to 63.0 and 1985-07-01 goes roughly 
> to 85.5.
> 
> Any suggestions on the best way to do this?

In version 6:

DateDifference["1900-01-01", "1963-01-01", "Year"][[1]]

DateDifference["1900-01-01", "1985-07-01", "Year"][[1]]

hth,

albert


  • Prev by Date: can't translate 3D model to 0,0,0
  • Next by Date: Re: list of dates
  • Previous by thread: Re: list of dates
  • Next by thread: Re: list of dates