Calendar basics
Why the Islamic Day Begins at Sunset, Not Midnight
The Islamic day runs from sunset to sunset, so each Hijri date starts the evening before. See what that means for Laylat al-Qadr, Eid eve and Friday night.
By Tahir Nasuru · · 7 min read

The Islamic day begins at sunset and lasts until the next sunset. In the Hijri calendar, the night comes first and the daytime follows it, so every Hijri date starts on the evening before the Gregorian date it is printed next to. A date shown as 1 Ramadan on a Monday begins at sunset on Sunday. This is why Muslims speak of "the night of Friday" on Thursday evening, and why the nights of the last ten days of Ramadan fall on the evening before their numbered dates.
Key Takeaways
- An Islamic date runs from sunset to sunset; a civil date runs from midnight to midnight.
- The night belongs to the date that follows it: Thursday evening is the night of Friday.
- The 21st night of Ramadan begins at sunset at the end of the 20th day of fasting.
- Fasting runs from dawn to sunset, so the fast begins at dawn, hours after its date has started.
- Calendars list the daytime of each Hijri date; the evening before is part of the same date.
Why the day starts in the evening
The Islamic calendar is lunar, and its months are tied to the crescent moon. The US Naval Observatory's Islamic calendar page explains that months traditionally begin when the thin crescent "is actually sighted in the western sky after sunset." The new crescent is an evening event. Its companion page on crescent moon visibility notes that the young crescent appears very low in the western sky after sunset and sets soon after the sun.
So the first moment a new month can be known is an evening. The sources below show the same order for days: the Quran speaks of the night before a fasting day, the USNO tables start each Islamic date at the previous sunset, and hadith name nights after the date that follows them. The Quran describes the crescents as timekeepers: in a translation of the meaning of Surah al-Baqarah 2:189 (Sahih International), "They are measurements of time for the people and for ḥajj [pilgrimage]."
Night before day also appears in the Quran's wording on fasting. Surah al-Baqarah 2:187 speaks of "the night preceding fasting," that is, the night that belongs to the coming fasting day.
Astronomical tables follow this convention. The USNO Islamic observances service states that its Islamic dates "begin at sunset of the previous evening and end at sunset on the date tabulated." That page adds that in practice, fasts and festivals are set by the visibility of the crescent, so a local announcement can move a date by a day.
Civil day and Islamic day on one calendar
A civil (Gregorian) date changes at midnight. An Islamic date changes at sunset, which is usually several hours earlier. Each Islamic date therefore overlaps two civil dates: the evening of one and the daytime of the next.
| Civil date | Islamic date | |
|---|---|---|
| Starts | Midnight | Sunset (Maghrib) |
| Ends | The next midnight | The next sunset |
| Order | Day, then night | Night, then day |
| What sets the moment | The time zone clock | Local sunset |
A printed Hijri calendar or date converter has to pick one label for each square. The convention used here is to give the Hijri date in effect during the daytime of that civil date. The evening before belongs to the same Hijri date, even though the calendar prints it on the previous square. This also holds for today's Hijri date: after sunset tonight, the Islamic date has already moved on to tomorrow's.
Because the boundary is sunset, the exact moment depends on where you are. Sunset in Jakarta, Cairo and London happens at different times, and it moves through the year. Your local Maghrib time, shown on a daily prayer times page, is the practical marker for when the next Islamic date has begun.
What the sunset boundary changes in practice
Fasting runs from dawn to sunset
The Islamic date starts at sunset, but the fast does not. In Surah al-Baqarah 2:187 (Sahih International), eating and drinking are allowed "until the white thread of dawn becomes distinct" and then: "Then complete the fast until the night [i.e., sunset]." The Prophet ﷺ described the moment of breaking the fast in Sahih al-Bukhari 1954: when night comes from one side, the day departs from the other, "and the sun sets," the fasting person breaks the fast.
So the first evening of Ramadan has no iftar. The sunset that opens 1 Ramadan comes before the first suhoor, and the first iftar is at the next sunset. That first evening is already the night of 1 Ramadan, which is why mosques that hold Taraweeh prayers begin them on that evening, before anyone has fasted. Each sunset that ends a day's fast also begins the next Hijri date.
Laylat al-Qadr and the odd nights
The Prophet ﷺ said, in Sahih al-Bukhari 2017, "Search for the Night of Qadr in the odd nights of the last ten days of Ramadan." Because the night comes before its day, "the 21st night" is the night before the 21st day of fasting. It begins at sunset at the end of the 20th fast.
Sahih al-Bukhari 2027 shows this order. Abu Sa'id al-Khudri describes the night of the twenty-first, rain falling that night, and the mark of mud and water on the Prophet's forehead "in the morning of the twenty-first." The night came first and the morning of the same date followed. In a translation of the meaning (Sahih International), the Quran says of the Night of Decree, "Peace it is until the emergence of dawn" (Surah al-Qadr 97:5).
Which odd night is most likely is a question scholars discuss, and the answer is not settled here. The counting itself is simple once you start from sunset. The guide to counting the last ten nights goes through it in detail.
Eid eve
Eid al-Fitr begins at the sunset that ends the last fast of Ramadan. If the month ends after 29 days, the evening of the 29th day is already the night of Eid, and there is no fast the next morning. If Ramadan is completed to 30 days, Eid night is one evening later.
This is why an announcement on the evening of the 29th matters so much: it tells people whether the night they are in belongs to Ramadan or to Shawwal. The Eid al-Fitr page lists the calculated date, and the post on why Eid al-Fitr falls on different days explains why communities can differ.
Eid al-Adha follows this rule too. The Day of Arafah (9 Dhu al-Hijjah) is a daytime observance, and the night of Eid al-Adha begins at sunset at the end of that day.
Friday night is Thursday evening
In Muslim usage, "the night of Friday" (laylat al-jumu'ah) is the night between Thursday and Friday. Sahih Muslim 1144b uses the term when it says not to single out "the night (preceding) Friday among the nights for prayer" nor Friday among the days for fasting. The translator's word "preceding" reflects the order: the night comes before the day it is named after.
Other weekdays can be named this way too, so "Monday night" in an Islamic context may mean Sunday evening, while everyday English uses it for the evening after Monday. When it matters, write the civil day and the time: "Thursday evening, after Maghrib."
A worked example: Ramadan 1448
The calculated Umm al-Qura calendar places 1 Ramadan 1448 on Monday, 8 February 2027, and gives the month 29 days. Read through the sunset rule, that produces this schedule. Dates are calculated from the Umm al-Qura tables in the open-source hijri-converter library that this site uses; local announcements may differ by a day, and every entry would then shift with them.
| Event | Hijri date | Begins |
|---|---|---|
| First night of Ramadan | 1 Ramadan | Sunset, Sunday 7 February 2027 |
| First fast | 1 Ramadan | Dawn, Monday 8 February 2027 |
| 21st night | 21 Ramadan | Sunset, Saturday 27 February 2027 |
| 23rd night | 23 Ramadan | Sunset, Monday 1 March 2027 |
| 25th night | 25 Ramadan | Sunset, Wednesday 3 March 2027 |
| 27th night | 27 Ramadan | Sunset, Friday 5 March 2027 |
| 29th night | 29 Ramadan | Sunset, Sunday 7 March 2027 |
| Night of Eid al-Fitr | 1 Shawwal | Sunset, Monday 8 March 2027 |
| Eid al-Fitr day | 1 Shawwal | Tuesday 9 March 2027 |
The 27th night begins on a Friday evening, so it is also the night of Saturday in Islamic reckoning. And a calendar that prints "27 Ramadan" on Saturday 6 March is not wrong; the night that people seek began the evening before.
Sunset rule questions
Does a Hijri date on my phone change at sunset?
A calendar built on a civil grid, such as a monthly calendar page or a phone widget, usually changes the Hijri date with the civil date at midnight rather than at sunset. Treat the date shown as the daytime label and remember that the evening before already belongs to it.
Is the Islamic day start the same for everyone at once?
No. Sunset moves with longitude, latitude and season, so the new Islamic date begins at a different moment in each city. Communities can also start a month on different days if they follow different moon-sighting methods; the post on new moon vs first crescent explains why.
When do I fast on a date listed as Monday?
From dawn on Monday until sunset on Monday. The Sunday evening before is part of the same Hijri date, but the fast is the daytime part.
Put the sunset rule to use
When you plan anything tied to a Hijri date, write the evening it starts: find the date with the Hijri date converter, step back one evening, and check your local Maghrib time on the daily prayer times page. For Ramadan nights and Eid, mark the plan as provisional until your mosque or local authority confirms the month; a guide to local date announcements on our sister site Everyday Muslim shows one way to keep that record.


