Oracle date field

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
akarsh
Participant
Posts: 51
Joined: Fri May 09, 2008 4:03 am
Location: Pune

Oracle date field

Post by akarsh »

I have to load date field in oracle table,It loading as 1900 base while i need to load in 2000 base.

eg
current output
Input -> Output
07-23-01 -> 07/23/1901

desired output
07-23-01 -> 07/23/2001

I am using StringToDate(inputfield ,"%mm-%dd-%yy") function.
Please advise how to fix this.
Thanks,
Akarsh Kapoor
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Do an exact search here for "century pivot", this has been asked and answered before and that will turn the discussions up.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply