Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
Posted: Mon Nov 17, 2014 10:09 pm
All,
Need a help in date conversion. I searched quite a bit but could not find the specific conversion function.
My input is from DB2 and data type is DATE which is YYYY-MM-DD for format. The output is in sequential file (.txt) and it needs to be MM/DD/YYYY format.
I used the below function, but not working.
Oconv(Iconv(As_Of_Dt,"D-MDY[2,2,4]","D/MDY[2,2,4]")
Any help.
Thanks.
Need a help in date conversion. I searched quite a bit but could not find the specific conversion function.
My input is from DB2 and data type is DATE which is YYYY-MM-DD for format. The output is in sequential file (.txt) and it needs to be MM/DD/YYYY format.
I used the below function, but not working.
Oconv(Iconv(As_Of_Dt,"D-MDY[2,2,4]","D/MDY[2,2,4]")
Any help.
Thanks.