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 Values

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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.