Re: week of year function
Posted in 1998
On Wed, 21 Jan 1998, Mark Collins wrote: } > easy. Adjusting for leap years, the DOW for any given date shifts } > forward one day from the previous year (2 in a leap year) ... } } Only if that date in question is after Feb. 28. For instance, March 1, 1995 was a } Wednesday, March 1, 1996 was a Friday, two days as stated in your rule above. But February } 1, 1995 was a Wednesday and February 1, 1996 was a Thursday, only one day. Minor nit, but } with a potentially large impact. Good point. That's what I get for answering quickly. I did say to adjust for leap year but CLEARLY that was not enough for someone not used to doing date calculations. Thanks for putting me back on the straight and narrow. Art S. Kagel, kagel@bloomberg.com