The Islamic Hijri Calendar is based on the lunar cycle and was established in 637/638AD by Umar ibn Khattab.
The Islamic calendar has 12 months, with 29 or 30 days in its cycle. Furthermore, suppose the Crescent Moon is visible after sunset on the evening of day 29. In that case, the following day is the first day of the new month. If there’s no sighting, a 30th day is added to the current month, followed by the subsequent month’s first day. Rajab, Dhū al-Qa’dah, Dhu al-Ḥijjah, and Muḥarram are the four most sacred months.
Each Hijri year lasts around 354 days and is the time it takes for the Moon to circle the earth 12 times. Every month lasts for a full lunation, which is from one New Moon to the next. This cycle encompasses all the stages of the Moon.
The timing of the months in the Islamic calendar is dependent on astronomical observation. A new month can only begin after a Waxing Crescent Moon is observed shortly after sunset. The Waxing Crescent Moon is the Moon phase that starts right after a New Moon.
The Islamic calendar year will not match up with the length of a solar year. Therefore, it does not feature a correction mechanism like leap days in the Gregorian calendar to deviate. Islamic dates fall on earlier dates in the Gregorian calendar for each year that passes. It takes 33 years until the Hijri year has cycled through a full Gregorian year. A given Islamic date falls on the same Gregorian date.
The Islamic calendar years are shorter than Gregorian years, and the current year number is lower. The two calendar systems will show the same year number one day. The next time this happens, the year numbers will coincide on May 1, 20874 CE.