Latest web development tutorials
 

PHP jdtojulian() Function

< 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