5 pts.
 Decimal Value as a Date
I have an AS/400 field called ADMIT_DATE that is typed DECIMAL(8,0). It contains values such as 20061031. (including the decimal point). I would like to convert that field to an AS/400 DATE field such that the resulting values look like 2006-10-31. Can someone provide an example using the AS/400 type conversion functions? Thanks.

Software/Hardware used:
ASKED: October 21, 2008  9:05 PM
UPDATED: October 22, 2008  3:29 PM

Answer Wiki:
If you are using RPG, try the %Date() BIF. If you are using SQL, use the Cast or Date functions. Gerardo
Last Wiki Answer Submitted:  October 22, 2008  2:48 pm  by  GAC   300 pts.
All Answer Wiki Contributors:  GAC   300 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _