Convert a Gregorian date to a Julian day count and back to a Gregorian date:
<?php$jd=gregoriantojd(6,20,2007);echo $jd . "<br>";echo jdtogregorian($jd);?>The jdtogregorian() function converts Julian day counts to Gregorian dates.
Tip: See the gregoriantojd() function, which converts Gregorian dates to Julian day counts.
jdtogregorian( jd);
| parameter | describe |
|---|---|
| jd | Required. Number (Julian day count). |
| Return value: | Returns the date in the Gregorian calendar as "month/day/year". |
|---|---|
| PHP version: | 4+ |