Page 1 of 1

Date convertions

Posted: Thu Feb 28, 2008 10:30 am
by mcs_suresh
Hi friends,

How to handle Date convertions in Datastage? Convert a mm/dd/yyyy format to yyyy-dd-mm?

Posted: Thu Feb 28, 2008 10:38 am
by chulett
Look up the various 'Date' functions, like DateFromString and StringFromDate off the top of my head.

Posted: Thu Feb 28, 2008 1:28 pm
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.

Posted: Thu Feb 28, 2008 2:19 pm
by ray.wurlod
Are you being interviewed, or setting up a "prepare for interview" site?
:roll: