in reply to Re: Yesterdays date while daylight saving time change
in thread Yesterdays date while daylight saving time change

Used this solution and just subtract only 12 hours instead of 24 hours. works with only 1 hour subtraction too. Thanks all!
  • Comment on Re^2: Yesterdays date while daylight saving time change

Replies are listed 'Best First'.
Re^3: Yesterdays date while daylight saving time change
by JavaFan (Canon) on Mar 29, 2010 at 09:55 UTC
    Used this solution and just subtract only 12 hours instead of 24 hours. works with only 1 hour subtraction too.
    If you use a 1 hour subtraction, you'll be back here in half a year when it fails because of a DST change in the other direction.

      Good I used your suggestion and not the one from my boss (he gave me the idea with only 1 hour) :-)