How to convert afghanistan date
A practical guide to converting Afghan dates between the Solar Hijri, Lunar Hijri and Gregorian calendars, covering digits, text direction and copy-paste problems.
Converting an Afghan date means mapping a date written in one of the calendars used in Afghanistan to the Gregorian calendar, or the reverse. The calendars involved are mainly the Solar Hijri (Hijri Shamsi) and the Lunar Hijri (Hijri Qamari). The point in time stays the same. What changes is the calendar system, the month name, often the digit characters, and sometimes the text direction. Each of these can affect whether the converted date stays accurate and usable.
First, identify which calendar the date uses
Most conversion errors start with assuming the wrong calendar. A date from Afghanistan may be written in the Solar Hijri calendar, the Lunar Hijri calendar or the Gregorian calendar. Look at the year number and the month name before you convert anything.
The Solar Hijri calendar counts years from the Hijra in 622 CE. Its year begins at Nowruz, near the March equinox. In Dari, its months are named after the signs of the zodiac. It has the same month structure as the Iranian calendar, but the month names differ. Pashto has its own set of month names. Transliterations into Latin script also vary, for example Sawr or Saur, and Sunbula or Sonbola.
| Month | Dari name (common transliteration) | Iranian equivalent | Days |
| 1 | Hamal | Farvardin | 31 |
| 2 | Sawr | Ordibehesht | 31 |
| 3 | Jawza | Khordad | 31 |
| 4 | Saratan | Tir | 31 |
| 5 | Asad | Mordad | 31 |
| 6 | Sunbula | Shahrivar | 31 |
| 7 | Mizan | Mehr | 30 |
| 8 | Aqrab | Aban | 30 |
| 9 | Qaws | Azar | 30 |
| 10 | Jadi | Dey | 30 |
| 11 | Dalw | Bahman | 30 |
| 12 | Hut | Esfand | 29 or 30 |
The Lunar Hijri calendar has twelve lunar months and a year of about 354 or 355 days. It therefore drifts by roughly eleven days each year against the solar calendars. Month starts can depend on moon sighting. Algorithmic (tabular) versions of the calendar can differ from the officially observed date by a day.
Gap: the supplied material does not confirm which calendar Afghan authorities currently use on official documents. For a specific document, check with the issuing body or look at the document itself rather than assuming.
Is conversion suitable for your use?
For most purposes, convert the date and keep the original next to it. The main benefit is that Gregorian readers, including US audiences, can understand the date immediately. The main tradeoff is accuracy at the edges. Solar Hijri dates near Nowruz or near the Gregorian new year are easy to shift by a year. Lunar Hijri dates can be off by a day, depending on which method the converter follows.
An unambiguous plain format is the better choice when the date will be read by software, entered into a form, sorted, searched or used as legal evidence. In those cases, record the original date exactly as written. Add the Gregorian equivalent in ISO 8601 form (YYYY-MM-DD) or with the month spelled out. Avoid an all-numeric US style such as 01/02/2025, which readers can interpret in different ways.
What conversion actually changes
Converting a date is not text reversal, mirroring or font styling. No characters are flipped. Several separate changes can happen together, and it helps to keep them apart.
- Calendar system: the year, month and day numbers are recalculated for a different calendar.
- Month name: a Dari, Pashto or Arabic month name is replaced with a Gregorian one, or the reverse.
- Digit characters: Extended Arabic-Indic digits used in Dari and Pashto text are different Unicode characters from the ASCII digits 0 to 9. Swapping them changes the stored characters, not just how they look.
- Direction: Dari and Pashto are written right to left. When a date sits inside right-to-left text, the Unicode bidirectional algorithm controls how it is displayed. Depending on the separator and the digit type, the parts can appear in a different order from the order in which they are stored. This is a display effect, and the stored text is unchanged.
Similar-looking digit sets cause a further complication. The Arabic-Indic digits (U+0660 to U+0669) and the Extended Arabic-Indic digits used for Persian-script languages (U+06F0 to U+06F9) are separate characters. Some of them look nearly identical and others differ. Text that mixes the two sets can fail exact-match searches and comparisons.
ASCII digit 0 1 2 3 4 5 6 7 8 9
Extended A-I ۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹
Code point U+06F0 ... U+06F9
A practical conversion workflow
- Identify the calendar and the language of the month name before converting.
- Convert any Extended Arabic-Indic or Arabic-Indic digits to ASCII digits so the numbers can be processed.
- Estimate the Gregorian year as a sanity check. For a Solar Hijri date, add 621 for dates from Nowruz to the end of the Gregorian year, and add 622 for dates from January 1 until the next Nowruz. Because Nowruz does not always fall on the same Gregorian day, calculate the exact day with a tested converter rather than by hand.
- Use a converter or calendar library that implements the Solar Hijri or Lunar Hijri calendar. For Lunar Hijri dates, note which method it uses: tabular, astronomical or a regional variant.
- Check the result against a known reference date, ideally one taken from the same source as the document.
- Write the result in an unambiguous form and keep the original date alongside it.
In software, the ICU library and Unicode CLDR data define a calendar type named "persian" for the Solar Hijri calendar, plus several Islamic calendar variants. In JavaScript, the Intl API can format a Gregorian date in these calendars, but it cannot parse a Solar Hijri date back to Gregorian. The reverse direction needs a separate library. Formatted output depends on the CLDR data bundled with the runtime, so check it in your own environment.
// Formats a Gregorian date in the Solar Hijri calendar with Afghan Dari locale data.
// Output varies by runtime and CLDR version; verify before relying on it.
const d = new Date(Date.UTC(2025, 0, 15));
const fmt = new Intl.DateTimeFormat('fa-AF-u-ca-persian', { dateStyle: 'long', timeZone: 'UTC' });
console.log(fmt.format(d));
Will the result stay readable after copying or sharing?
A converted date written with Latin month names and ASCII digits usually copies cleanly. Problems mostly arise when a date in Dari or Pashto script moves between systems.
- Spreadsheets, databases and search tools may not treat Extended Arabic-Indic digits as numbers, so sorting, filtering and calculations can fail.
- Some tools insert invisible direction marks, such as the left-to-right mark or right-to-left mark, around dates. These marks can survive copy and paste and then break parsing or exact-match search.
- Pasting a right-to-left date into a left-to-right field, or the reverse, can change how its parts appear. Readers may then misread the day and month order.
- Transliterated month names are spelled inconsistently, so searching for one spelling can miss another.
- How a screen reader announces a date depends on the language setting and voice in use. This guide has not tested any particular assistive technology, so check with the tools your readers actually use.
Provide a plain-text equivalent with ASCII digits, an unambiguous order and no hidden direction marks wherever the date will be machine-read, entered into a form, used in a file name or shared with readers who may not have right-to-left support. One successful rendering in a single app does not show the date will display correctly everywhere.
Open questions this guide could not resolve
- No specific conversion tool was evaluated, so no tool is recommended by name.
- The calendar currently used on official Afghan documents was not confirmed by the supplied evidence.
- This guide does not verify whether every Afghan Solar Hijri date matches Iranian calendar arithmetic in all years.
- Lunar Hijri results depend on the sighting authority or algorithm the source used, and that is not always stated.