Hello Again,
I've got funky date fields coming from an AS/400 that I need to convert to an accepted date by SQL. I'm looking for a fast/correct way to do this for a SQL View I'm creating.
Today's date on the iSeries (AS/400) looks like this: 01061204 (ccyymmdd)
I need the dates to look like 12/04/2006 (mm/dd/yyyy)
If I add 19000000 to the iSeries date I get the current date but in the wrong format (yyyymmdd).
Does anyone have a 'correct' way to convert the resulting yyyymmdd into mm/dd/yyyy?
I've got funky date fields coming from an AS/400 that I need to convert to an accepted date by SQL. I'm looking for a fast/correct way to do this for a SQL View I'm creating.
Today's date on the iSeries (AS/400) looks like this: 01061204 (ccyymmdd)
I need the dates to look like 12/04/2006 (mm/dd/yyyy)
If I add 19000000 to the iSeries date I get the current date but in the wrong format (yyyymmdd).
Does anyone have a 'correct' way to convert the resulting yyyymmdd into mm/dd/yyyy?