PHP JDToJulian() Function

Example

Convert a Julian date to a Julian day count and then back to a Julian date:

<?php
$jd=juliantojd(9,25,2016);
echo $jd . "<br>";
echo jdtojulian($jd);
?>

Run Example

Definition and Usage

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

Tip:See Also juliantojd() The function converts a Julian date to a Julian day count.

Syntax

jdtojulian(jd);
Parameter Description
jd Required. Number (Julian day count).

Technical Details

Return Value: Returns the Julian date in the format "month/day/year".
PHP Version: 4+