PHP JDToGregorian() Function

Example

Convert the date of the Gregorian calendar to Julian Day Count and then back to the date of the Gregorian calendar:

<?php
$jd=gregoriantojd(9,25,2016);
echo $jd . "<br>";
echo jdtogregorian($jd);
?>

Run Example

Definition and Usage

The jdtogregorian() function converts Julian Day Count to the date of the Gregorian calendar.

Tip:See also gregoriantojd() Function used to convert the date of 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 of the Gregorian calendar in the format "month/day/year".
PHP Version: 4+