How to use GregorianToJd in PHP Calendar
In this article I am going to explain about Gregorian function in PHP.
PHP Calendar GregorianToJd() Function
The calendar GregorianToJd function converts a Gregorian date to a Julian day count.
Syntax of GregorianToJd function
gregoriantojd(month, day, year) |
Parameters in GregorianToJd function
It have three parameters and all parameters is required:
Parameter |
Description |
month |
It specified month. |
day |
It specified the day. |
year |
It specified year. |
Example of Calendar GregorianToJd function
<html>
<body>
<?php
$jd = GregorianToJD(12, 30, 2010);
echo ($jd."<br/>");
$gregorian = JDToGregorian($jd);
echo "$gregorian\n";
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here