The JulianToJD() function converts a Julian date to a Julian day count. It returns a Julian day number.
Syntax
juliantojd(month, day, year)
Parameters
month − Specifies the month as a number from 1 to 13
day − Specifies the day as a number from 1 to 30
year − Specifies the year as a number between 1 and 9999
Return
The juliantojd() function returns a Julian day number.
Example
The following is an example −
<?php $res = juliantojd(9,29,2018); echo $res . "<br>"; echo jdtojulian($res); ?>
Output
The following is the output −
2458404 9/29/2018