PHP jdtogregorian() Function
Example
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);
?>
Run example »
Definition and Usage
The jdtogregorian() function converts a Julian Day Count to a Gregorian date.
Tip: Look at the gregoriantojd() function to convert a Gregorian date to a Julian Day Count.
Syntax
jdtogregorian(jd);
Parameter | Description |
---|---|
jd | Required. A Julian Day number |
Technical Details
Return Value: | Returns a Gregorian date in format "month/day/year" |
---|---|
PHP Version: | 4+ |
❮ PHP Calendar Reference