Difference Between Dates and Optional Times
Times are in 00:00 to 24:00 Format
PHP Program by Jay Tanner
Start Date
: ±Y M D
Start Time
: HH:MM:SS
:
:
Calendar Mode
:
Julian
Gregorian
End Date
: ±Y M D
End Time
: HH:MM:SS
:
:
Calendar Mode = Gregorian Start Date/Time = 2025 August 31 Sun 00:00:00 Julian Date = 2460918.5 Julian Day Number = 2460919 -------------------- End Date/Time = 2151 March 24 Wed 00:00:00 Julian Date = 2506785.5 Julian Day Number = 2506786 =================================================== DIFFERENCE BETWEEN THE DATES AND TIMES = EndDate − StartDate = 45867 d = 125.5795806895 Gregorian yr = 45867d 00h 00m 00s = 6552wk 3d 00h 00m 00s ==================== 2025 August Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ==================== 2151 March Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Jay Tanner - 2025