Source Code:
(back to article)
<?php $jd = 2459293.5; // Julian date $cal = CAL_GREGORIAN; // Calendar type $date = cal_from_jd($jd, $cal); // Convert Julian date to Gregorian date echo "Gregorian date: " . $date['year'] . "-" . $date['month'] . "-" . $date['day']; ?>
Result:
Report an issue