X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP jdtogregorian() Function

PHP Calendar Reference PHP Calendar Reference

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 PHP Calendar Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook