Subject | Re: [firebird-support] Subtract Years from a Date Value in SQL |
---|---|
Author | Martijn Tonies |
Post date | 2005-03-01T16:25:52Z |
> > Perhaps it would be better to write an UDF in whichRight... :-)
> > you decode the date, subtract 100 years and encode
> > it again. That way, the leap years are included.
>
> Yeah, but if the date is a 29.02., you would also have to check if the
> calculated year is also a leap year (e.g. 29.02.2000 minus 100 years ->
> 28.02.1900 ?)
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server
Upscene Productions
http://www.upscene.com