Date type 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
vasam
Participant
Posts: 30
Joined: Wed Nov 04, 2009 5:06 am

Date type conversion

Post by vasam »

How do i convert date 2010-May-12 to 12-05-10?

I am using Parallel extender.

Any suggesion pls?
vijayakumargoud
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

StringToDate() followed by DateToString() using an appropriate format mask in both cases. Don't have access to my reference materials but off the top of my pointy little head, %yyyy-%mmm-%dd and %yy-%mm-%dd respectively?
-craig

"You can never have too many knives" -- Logan Nine Fingers
routhu
Participant
Posts: 6
Joined: Mon Sep 13, 2010 3:33 pm

Post by routhu »

chulett wrote:StringToDate() followed by DateToString() using an appropriate format mask in both cases. Don't have access to my reference materials but off the top of my pointy little head, %yyyy-%mmm-%dd and %yy-%mm-%dd respectively?

criag,

we can do the same using oconv and iconv functions too rite??
Madhu Routhu
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

As OP is using enterprise edition, iconv and oconv is not recomended (however can be used in a basic transformer). Craig has suggested the appropriate solution.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply