Date convertions

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
mcs_suresh
Participant
Posts: 9
Joined: Fri Sep 21, 2007 10:37 am

Date convertions

Post by mcs_suresh »

Hi friends,

How to handle Date convertions in Datastage? Convert a mm/dd/yyyy format to yyyy-dd-mm?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Look up the various 'Date' functions, like DateFromString and StringFromDate off the top of my head.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Is your input column a date field? If yes then no function is required, just change the date format in your target stage or at the project level if you want to stick to that format.
If your input column is a string, then one of the 'Date functions' is required, as Craig mentioned.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you being interviewed, or setting up a "prepare for interview" site?
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply