I work as a consultant, and most of my clients have J. D. Edwards applications. JDE software stores most dates in the Julian format (0YYDDD).
If any of these dates need to be displayed in a report, an RPG program would have to be written instead of using a simpler tool, such as Query/400. Nobody could tell me how to convert Julian dates to the DD/MM/YY format, which is common here in Australia. After perusing the Query/400 manual, I found a way to do this conversion in one line.
In my example, I'll use a field called SDTRDJ, which stores a Julian format date. Using the Work with Query (WRKQRY) command or some similar command, I select the Define Result Fields screen (see 6). Define the DDMMYY field and use the functions shown in the figure to reformat the date. On printing DDMMYY, it prints in DD/MM/YY format or whatever your system value for the date format may be. This has been a great help to me.
In my example, I'll use a field called SDTRDJ, which stores a Julian format date. Using the Work with Query (WRKQRY) command or some similar command, I select the Define Result Fields screen (see Figure 6). Define the DDMMYY field and use the functions shown in the figure to reformat the date. On printing DDMMYY, it prints in DD/MM/YY format or whatever your system value for the date format may be. This has been a great help to me.
- Selwyn M. Abrahams
LATEST COMMENTS
MC Press Online