StringToDate for dd/mmm/yy resulting in 1900 instead of 2000

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
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

StringToDate for dd/mmm/yy resulting in 1900 instead of 2000

Post by rroy2 »

Hi,

I have data in input as 20/Sep/03. When i try to convert this to date using String to Date function with %dd/%mmm/%yy format it is converting the date as 1903-09-20

But I need 2003-09-20.

What additional things do I need to do to convert the dates to 21st century dates instead of 20th?

Thanks
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

Re: StringToDate for dd/mmm/yy resulting in 1900 instead of

Post by rroy2 »

use format as "%dd/%mmm/%2000yy"
Post Reply