Date conversion

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
suja.somu
Participant
Posts: 79
Joined: Thu Feb 07, 2013 10:51 pm

Date conversion

Post by suja.somu »

I need to convert the date in the parallel job version 8.5.

Input format : AUGUST 09, 2008
Output format : 2008-08-09

Is there any function to convert this date. Please help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

StringToDate() still works, check the documentation for the proper format mask. If your target is not a DATE then use DateToString() afterwards to get it back out in the format you need.
-craig

"You can never have too many knives" -- Logan Nine Fingers
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

Try below

stringtodate(<<columnname>>,"%mmmm %dd,%yyyy")
Srinu Gadipudi
Post Reply