Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Adding 1900 years to a date

Re: Adding 1900 years to a date

From: Jeremy <newspostings_at_hazelweb.co.uk>
Date: Mon, 30 Aug 2004 19:41:21 +0100
Message-ID: <MPG.1b9d8528e494c3a5989cd0@news.individual.net>


In article <MPG.1b9d84434264ec58989ccf_at_news.individual.net>, Jeremy says...
> Have a load of dates in an 8i (8.1.7.2) database inadvertently loaded as
> e.g.
>
> 21-sep-0076
>
> i..e with the wrong century. What is quickest way of adding the 1900
> years to each of these?
>

Sorry forgot to add that I had thought of e.g.

date_of_birth := date_of_birth + 1900*365

but of course this wouldn't cater for leap years.

Mind has gone blank - welcome a prod!

-- 

jeremy
Received on Mon Aug 30 2004 - 13:41:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US