Converting JDE Julian date to Gregorian date in SELECT statement
Converting JDE Julian date to Gregorian date in SELECT statement
(OP)
I have a MySQL table with Julian dates coming from JD Edwards data. JDE defines Julian dates as CYYDDD (century, year, day). July 4, 2018 is 118184.
Is there a way to select this data as a gregorian date in MySQL?
Is there a way to select this data as a gregorian date in MySQL?
RE: Converting JDE Julian date to Gregorian date in SELECT statement
CODE
This query ignores the first century character and MySQL's MAKEDATE appears to assume '2018' from '18'. My data does not include anything prior to 2000 so I'm okay with the results, but any corrections are appreciated.