PHP JDToJulian() Function

Example

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

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

Run Example

Definition and Usage

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

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

Syntax

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

Technical Details

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