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

PHP jdtojulian() Function

PHP Calendar Reference PHP Calendar Reference

Example

Convert a Julian date to a Julian Day Count and back to a Julian date:

<?php
$jd=juliantojd(6,20,2007);
echo $jd . "<br>";
echo jdtojulian($jd);
?>

Run example »

Definition and Usage

The jdtojulian() function converts a Julian Day Count to a Julian date.

Tip: Look at the juliantojd() function to convert a Julian date to a Julian Day Count.


Syntax

jdtojulian(jd);

Parameter Description
jd Required. A Julian Day number

Technical Details

Return Value: Returns a Julian 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