PHP jdtogregorian() function

PHP jdtofrench() function
PHP jdtojewish() Function

In this article, you will learn how to convert a Julian Day Count to a Gregorian date. Thanks to the name of the function which is showing the same meaning. Yes, the jdtogregorian() function converts a Julian Day Count to a Gregorian date.

What is the syntax of the jdtogregorian() function in PHP?

jdtogregorian(jd);
ParametersDetails
jdJulian Day Number
PHP jdtogregorian() method

Examples of the jdtogregorian() function

Example 1. The following example converts a Julian Day Count to Gregorian Date and vice versa.

<?php
$gd = jdtogregorian(16,21,2005);
$jd=gregoriantojd($gd);
echo $gd;
?>
PHP jdtofrench() function
PHP jdtojewish() Function
en English
X
Scroll to Top