I have an table on an AS400 that I have linked to using ODBC. There's a date field that is stored as a number. For example 20101. I want to be able to convert this number to a date 02/01/01. I tried using formatdatetime but I'm getting incorrect dates. For example 20101 becomes 1/12/1955. What am I doing wrong?
Thank you.
Thank you.