The JDToGregorian() function converts a Julian day count to a Gregorian date.
Syntax
jdtogregorian(julian_day);
Parameters
julian_day − A Julian Day number
Return
The JDToGregorian() function returns a Gregorian date in format "month/day/year".
Example
The following is an example −
<?php $res = gregoriantojd(11,11,18); echo $res . "<br>"; echo jdtogregorian($res); ?>
Output
1727949 11/11/18