MathGroup Archive 2012

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

Search the Archive

Re: creation of date list


Date functions are slow but straightforward

dates = Table[DatePlus[DateList[{1901, 01, 01}], n],
   {n, DateDifference[{1901, 01, 01}, {1991, 12, 13}]}];

dateStrings = DateString[#, {"Month", "Day", "Year"}] & /@ dates;

First[dateStrings]

01021901

Last[dateStrings]

12131991


Bob Hanlon

On Fri, Feb 3, 2012 at 2:12 AM, shippee <slshippee at gmail.com> wrote:
> I need to create a list of dates which runs from:
>
> 01/02/1901
> 01/03/1901
> 01/04/1901
> ...
> 12/11/1991
> 12/12/1991
> 12/13/1991
>
> but end up with a list of all those dates without the forward slash
> "/" - any thoughts on the best way to approach this with Mathematica?
> Please & Thanks in advance.
>



  • Prev by Date: Re: Funny Behavior of Module
  • Next by Date: Re: creation of date list
  • Previous by thread: Re: creation of date list
  • Next by thread: Re: creation of date list