JDE Julian Date conversion

Below you will find a JavaScript program which will convert JD Edwards Julian Dates to Java dates. The output format can be tweaked to your liking.

The code handles LEAP year conversion, as the following examples show. 2004 is a LEAP year, 1971 is not.

Kekes-MacBook-Pro:Downloads karmst$ rhino -f jimbo.js

JDE Date: 104138

Out Date: 20040517

Kekes-MacBook-Pro:Downloads karmst$ rhino -f jimbo.js

JDE Date: 071069

Out Date: 19710310