The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.
PHP jewishtojd() Function has the following syntax.
jewishtojd(month,day,year);
Parameter | Is Required | Description |
---|---|---|
month | Required. | Month value as a number from 1 to 13 |
day | Required. | Day value as a number from 1 to 30 |
year | Required. | Year value as a number between 1 and 9999 |
PHP jewishtojd() Function returns a Julian Day number.
Convert a Jewish date to a Julian Day Count
<?php
$jd=jewishtojd(6,20,2012);
echo $jd;
?>
The code above generates the following result.