What is the precise definition of JDE's Julian Date format?

后端 未结 8 686
清歌不尽
清歌不尽 2020-12-03 18:02

I am writing code to convert from a Gregorian date to a JDE (J.D.Edwards) Julian date.

Note: a JDE Julian date is different from the normal usag

8条回答
  •  心在旅途
    2020-12-03 18:21

    Maybe off from the question, you can convert in Excel using the following formula:

    Convert Julian to Date in Excel

    In Cell A2 place a Julian date, like 102324
    in Cell B2 place this formula: (copy it in)
    =DATE(YEAR("01/01/"&TEXT(1900+INT(A2/1000),0)),MONTH("01/01/"&TEXT(1900+INT(A2/1000),0)),DAY("01/01/"&TEXT(1900+INT(A2/1000),0)))+MOD(A2,1000)-1

    The date 11/20/02 date will appear in cell B2

    Convert Date to Julian in Excel

    In Cell C2 copy this formula:
    =(YEAR(B2)-2000+100)*1000+B2-DATE(YEAR(B2),"01","01")+1

    This will convert B2 back to 102324

提交回复
热议问题