In this article, you will learn how to convert the Jewish date to Julian Day count using jewishtojd() function in PHP.
In the early ages, there was no formula to calculate the starting of a new month. So, new month started with the new moon. But now, this function can handle dates 3761 B.C (back to 1 year).
What is the syntax of the jewishtojd() function in PHP?
jewishtojd(month,day,year);
Parameters | Details |
---|---|
month | Specify the month number(1-12) – Required |
day | Specify the month number(1-31) – Required |
year | Specify the year number (-4714-9999)- Required |
What is the syntax of the jewishtojd() function
Example 1. In the following example, we simply convert Julian Date to a Jewish date.
<?php
$j_d=jewishtojd(01,04,1998);
echo $j_d;
?>