Home > Software > Data-Warehouse > DataStage
Interview Questions   Tutorials   Discussions   Programs   Discussion   

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




855
views
asked Rams August 31, 2014 11:43 AM  

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


           

1 Answers



 
answered By vishnoiprem   0  
We use below function

a) Iconv function - Internal Convertion.
b) Oconv function - External Convertion.

Function to convert mm/dd/yyyy format to yyyy-dd-mm is
Oconv(Iconv(Filedname,"D/MDY[2,2,4]"),"D-MDY[2,2,4]")
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert