JDToGregorian() function in PHP


The JDToGregorian() function converts a Julian day count to a Gregorian date.

Syntax

jdtogregorian(julian_day);

Parameters

  • julian_day − A Julian Day number

Return

The JDToGregorian() function returns a Gregorian date in format "month/day/year".

Example

The following is an example −

Live Demo

<?php
   $res = gregoriantojd(11,11,18);
   echo $res . "<br>";
   echo jdtogregorian($res);
?>

Output

1727949
11/11/18

Updated on: 30-Jul-2019

17 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements