Example 1 — Jewish Date to Gregorian Date
Convert two Jewish dates into Julian Days, and then show the Gregorian date for each.
<?php
$jd = jewishtojd(4, 20, 5784);
echo $jd, PHP_EOL;
echo jdtogregorian($jd), PHP_EOL;
$newYear = jewishtojd(1, 1, 5784);
echo $newYear, PHP_EOL;
echo jdtogregorian($newYear), PHP_EOL; How It Works
- jewishtojd(4, 20, 5784) is the 20th day of month 4 (Tevet) in the year 5784.
- jdtogregorian() shows that day is January 1, 2024.
- jewishtojd(1, 1, 5784) is the first day of Tishri, the first day of the Jewish new year.
- That day was September 16, 2023 on the Gregorian calendar.

