PHP JDToGregorian() function
Complete PHP Calendar Reference
Definition and Usage
The JDToGregorian() function converts a Julian day count to a Gregorian date.
Syntax
| Parameter |
Description |
| jd |
Required. A number (a Julian day count) |
Tips and Notes
Note: This function returns a string in the format "month/day/year".
Example
<?php
$jd = gregoriantojd(10,3,1975);
echo($jd . "<br />");
$gregorian = jdtogregorian($jd);
echo($gregorian);
?>
|
The output of the code above will be:
Complete PHP Calendar Reference
Use a web development platform that will help you save a lot of time and bring excitement to your daily development work.
It will also create professional best-practices around your code development and team collaboration.
Try Springloops now, the web development platform
|