PHP JDToGregorian() Function
Example
Convert a date in the Gregorian calendar to Julian day count and then back to a date in the Gregorian calendar:
<?php $jd=gregoriantojd(9,25,2016); echo $jd . "<br>"; echo jdtogregorian($jd); ?>
Definition and Usage
The jdtogregorian() function converts Julian day count to a date in the Gregorian calendar.
Tip:See Also gregoriantojd() Function, used to convert a date in the Gregorian calendar to Julian day count.
Syntax
jdtogregorian(jd);
Parameter | Description |
---|---|
jd | Required. Number (Julian day count). |
Technical Details
Return Value: | Returns the date in the Gregorian calendar in the format "month/day/year". |
---|---|
PHP Version: | 4+ |