Skip to content

Afghan Date Converter

Convert a date between the three calendars or use your device’s local date as the starting point.

Open the date converter
On this page

Overview

Datakar converts the input date to a common day number. It then uses that number to calculate the dates in the other two calendars.

Lunar Hijri dates are calculated. The tabular result can differ from official moon sighting by a day, and sometimes by more.

Supported calendars

  • Solar Hijri. The calendar used in Afghanistan, with months from Hamal to Hut.
  • Gregorian. The international civil calendar.
  • Lunar Hijri. The arithmetic civil calendar.

Conversion method

The app uses a Julian Day Number (JDN) as a bridge. For a Solar Hijri input, for example, it finds the JDN for that date. The Gregorian and Lunar Hijri results both use that same day number.

Validation and leap years

Choose different source and target calendars. The app checks that the year, month and day form a valid date in the source calendar.

  • Gregorian uses the standard Gregorian leap-year rule.
  • Solar Hijri uses the browser’s Persian calendar (Intl/ICU). The difference between consecutive year starts determines whether a year is a leap year.
  • Tabular Lunar Hijri uses 29- and 30-day months and a 30-year leap cycle.

How Lunar Hijri is calculated

The Tabular Islamic Civil Calendar assigns month lengths and leap years by fixed arithmetic rules. Confirm dates for official documents, religious observances or other moon-sighting decisions with the relevant authority.

Day of the week and time from today

The day of the week comes from the JDN. The distance from today uses your device’s local date. It compares Gregorian years, months and days as calendar units.

Worked example

13 Sunbula 1405 corresponds to 4 September 2026 and 21 Rabi I 1448 in the tabular Lunar Hijri calendar.

Limits

The input accepts years 1 through 3000. An incorrect device date affects Today and the distance from today. Use an appropriate legal or religious authority for official dates.

Technical basis

Conversion runs in JavaScript in the browser. It uses JDN, the Persian calendar in Intl.DateTimeFormat, and the tabular civil model. The source guide records its technical review on .