Re: Last Day of Year Date Bug?



In article
<063e7b54-e204-494e-b3fe-da540fddc6c0@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
ashore <shoreas@xxxxxxxxx> wrote:

Feature or bug, that's pretty bad (where 'bad' == 'non-intuitive').

While correcting this will prbly break a lot of applications, mebbe
it's time for another date set of functions.

What DO you guys use to 'go back one month' reliably?

First we should ask - what does your question mean?

Does "go back one month" mean go back 31 days or does it mean "go to
same numbered day of previous month"?

Each definition has its problems. 2nd March minus 31 days takes you to
January. From 31st Dec, there *is no* same numbered day in previous
month.
.



Relevant Pages

  • Re: Last Day of Year Date Bug?
    ... While correcting this will prbly break a lot of applications, mebbe ...
    (comp.lang.php)
  • Re: Last Day of Year Date Bug?
    ... While correcting this will prbly break a lot of applications, mebbe ... Here is some date arithmetic I posted that uses mktime, ...
    (comp.lang.php)
  • Re: "Nero"
    ... I think you are talking about the plug-in that NERO adds to Windows Media ... applications. ... I was just correcting myself. ...
    (microsoft.public.windowsxp.basics)
  • Re: Best way to interface a scale
    ... bonus that it could be used to develop applications that ran on desktops. ... Thanks for correcting my wrong historical perspective, Joe. ...
    (microsoft.public.vc.mfc)