How the calendar works
When Does the Islamic Day Begin? Sunset, the Night Before and Hijri Dates
The Islamic day starts at Maghrib, so the night comes before its day. How this affects Ramadan, Eid, special nights and converter dates.
Ask “what date is it?” at 9 p.m. on a Thursday and most people will answer with Thursday’s date. In the Islamic calendar, the honest answer is: it is already the night of Friday. The Hijri day begins at sunset, not at midnight — and once that clicks, a lot of small confusions about special nights, the first taraweeh and converter results disappear.
The rule: the night comes first
In the Islamic reckoning, each day begins at Maghrib, the moment of sunset, and runs until the next sunset. The night belongs to the day that follows it.
So:
- Thursday after sunset is the night of Friday (laylat al-jum’ah).
- The evening the Ramadan crescent is seen is already the first night of Ramadan.
- The night of the 27th of a month is the night before the 27th day.
This is not a separate religious rule invented for Islam; it is the natural consequence of a calendar that begins each month with a crescent seen after sunset. If a month begins when the crescent is sighted at dusk, the day must begin at dusk too.
Where this comes from
The Quran and hadith consistently treat nights as preceding their days. The Night of Decree is described in the Quran as a night that lasts “until the emergence of dawn” (97:5), and the hadith on the last ten nights of Ramadan count the nights before the corresponding days. The Prophet ﷺ referred to Thursday night as the night of Friday, and Friday’s special virtues are described as beginning on that night.
Arabic itself reflects this. When Arabs count, they speak of “nights” — a month of thirty nights — and the date in Arabic dating formulas is often given as “for X nights passed of the month” (li-khams layalin khalawna). Many pre-modern Hijri documents date themselves this way.
Fasting is the exception that proves the rule
If the day starts at sunset, why does fasting start at dawn? Because the Quran defines the fast separately: eat and drink “until the white thread of dawn becomes distinct from the black thread [of night]; then complete the fast until the night” (2:187).
So in Ramadan:
- The Hijri day of 1 Ramadan begins at sunset on the evening the crescent is confirmed.
- The first taraweeh is prayed that same evening.
- The first fast begins at dawn the next morning and ends at sunset — which is also when the 2nd of Ramadan begins.
For Ramadan 1448, expected to begin on Monday 8 February 2027, the first taraweeh would be on the evening of Sunday 7 February, and the first fast on Monday.
Special nights: the date you actually need
This is where the rule matters most in practice. Many calendars list special occasions by their day, while the worship associated with them happens on the night before.
| Occasion (1448 AH, Umm al-Qura) | Day | The night begins |
|---|---|---|
| 27 Rajab (Isra and Mi’raj, commemoration) | Tuesday 5 January 2027 | Monday 4 January, after sunset |
| 15 Sha’ban (mid-Sha’ban) | Saturday 23 January 2027 | Friday 22 January, after sunset |
| 1 Ramadan | Monday 8 February 2027 | Sunday 7 February, after sunset |
| 21st night of Ramadan (start of last ten) | — | Saturday 27 February, after sunset |
| 27th night of Ramadan | — | Friday 5 March, after sunset |
| Eid al-Fitr (1 Shawwal) | Tuesday 9 March 2027 | Monday 8 March, after sunset |
If you see “Shab-e-Barat: 23 January” and turn up at the mosque on the evening of the 23rd, you have arrived a night late. The night of the 15th of Sha’ban is the night before the 15th day.
Why online converters seem “a day behind” in the evening
Hijri date converters — including ours — convert the civil date, which changes at midnight. That is the only sensible default for a tool used for documents, birthdays and contracts, which are written with civil dates.
But it means that between sunset and midnight, a converter shows what is technically “yesterday’s” Hijri date from the Islamic point of view. If you are checking the date to decide whether a special night has begun, add one day after sunset.
Our today’s date page explains this beside the date, and the prayer times page shows the exact Maghrib time where you are, which is when the Hijri day turns over.
What about the Islamic “day” in law and contracts?
For most legal purposes in modern Muslim countries, the civil day (midnight to midnight) is used, even in countries that use the Hijri calendar officially. A Saudi document dated 1 Ramadan refers to the civil day that the Umm al-Qura calendar labels 1 Ramadan, not the period from the previous sunset.
Islamic jurisprudence itself uses both frames depending on the question. For fasting, the relevant boundaries are dawn and sunset. For the night prayers and special nights, the night begins at sunset. For waiting periods and some contractual terms, scholars discuss whether to count days, nights or both; those details are beyond the scope of this guide.
Three everyday situations
Friday night. The Sunnah practices associated with the night of Friday — such as sending abundant blessings on the Prophet ﷺ, which he encouraged “on Friday and the night of Friday” — begin at sunset on Thursday. The day of Friday then runs until sunset on Friday.
A 29-day Ramadan. If Ramadan has 29 days, the “29th night” is the last night of the month and the “30th night” never happens: the next evening is already the night of Eid. People who plan to spend the odd nights of the last ten in worship sometimes miss the 29th night because they assume there will be another. In 1448 AH, the Umm al-Qura calendar gives Ramadan 29 days, so the 29th night would begin on the evening of Sunday 7 March 2027 and Eid would follow on Tuesday 9 March — after the 29th day on Monday 8 March.
Travelling across time zones. If you fly from Jakarta to London on the evening of the 14th of a Hijri month, you may arrive to find it is still the 14th in London — or that London’s community began the month a day later. The Hijri date is tied to local sunset and local (or followed) sighting. When you travel during Ramadan, the general rule taught by scholars is to fast and break your fast with the community you are in.
Sunset is local
Because the day begins at local sunset, the Hijri date turns over at different moments around the world. When it is already the night of Friday in Jakarta, it is still Thursday afternoon in London and Thursday morning in New York. Combine this with time zones and local moon sighting, and it is easy to see why Muslims around the world can be on different Hijri dates at the same moment.
Our country pages compute the Hijri date in each country’s own time zone for exactly this reason.
Why not simply start the day at midnight?
Midnight is a modern convention, made practical by clocks. For most of human history, the obvious boundaries of the day were sunrise and sunset, and many traditions — Jewish, early Christian and Arab — counted the day from sunset. The Islamic calendar shares that older reckoning because its months are anchored to an event that can only happen at dusk: the first sighting of the crescent. A calendar that begins its months at sunset and its days at midnight would split the first night of every month in two.
Quick reference
- The Hijri day starts at sunset (Maghrib).
- The night comes before its day: Thursday evening is Friday night.
- Fasting runs from dawn to sunset; the first taraweeh is the evening before the first fast.
- For a special night, go on the evening before the listed day.
- Converters show the civil date; after sunset, add one day for the Islamic reckoning.
Once you think of each Hijri day as starting at dusk, the calendar’s rhythm — moon, night, day — feels natural. It is, after all, how the month itself begins.
Frequently asked questions
Does the Islamic day start at sunset or midnight?
At sunset (Maghrib). The night that begins at sunset belongs to the following day, so Thursday evening is already the night of Friday.
When is the night of the 27th of Ramadan?
It begins at sunset at the end of the 26th day of Ramadan. In 1448 AH that is the evening of Friday 5 March 2027, on the Umm al-Qura calendar.
Why do Hijri converters show a different date after sunset?
They usually convert the civil date (midnight to midnight). After sunset, many Muslims already count the next Hijri day, so the converter can look one day 'behind'.
When does the fasting day begin in Ramadan?
The fast begins at dawn (Fajr) and ends at sunset, even though the Hijri date itself changed at the previous sunset.