Thai Year Converter
Category: Date-Time Format ConvertersInput Date
Enter date for conversionConversion Type
Choose conversion directionConversion Result
Thai year conversion resultThai Year Conversion Information & Examples
What is the Thai Buddhist Calendar?
The Thai Buddhist Calendar uses the Buddhist Era (BE) which begins with the passing of Buddha Gautama in 543 BCE. Thailand officially adopted this system in 1888, making the Buddhist calendar 543 years ahead of the Gregorian calendar. The current year 2025 CE corresponds to 2568 BE in Thailand.
Conversion Methods
Conversion Examples
Important Notes
The Thai Year Converter shifts years between the Gregorian calendar and Thailand's Buddhist Era (BE) using a fixed 543-year difference. Enter a year or date, pick a direction, and it returns the matching year plus formatted dates in your chosen time zone.
Key points:
- Gregorian to Thai: add 543. Thai to Gregorian: subtract 543. The arithmetic is exact whole years.
- The time zone dropdown changes only how full dates are displayed, not the year calculation.
- The year field takes priority when both a date and a year are filled.
- Blank inputs trigger an alert. Malformed or out-of-range values are not blocked by the calculator's logic.
- How the converter works
- The fixed 543-year offset
- Inputs, defaults, and priority
- Output fields and formatting
- Time zone selection and its limits
- Blank, malformed, and edge-case inputs
- Code-based worked examples
- Comparing with other calendar tools
- Thai Buddhist Era 543-Year Offset Guide with the Thai Year Converter
How the converter works
This tool performs a calendar year conversion between the Gregorian system (Common Era, CE) and Thailand's Buddhist Era (BE). It does not handle lunar dates, leap-second adjustments, or historical calendar reforms. For other systems, see the Buddhist Calendar Converter or the Ethiopian Calendar Converter.
You can use it to read Thai documents, check the current BE year, or format a full date in both systems. The conversion relies on a single arithmetic rule applied only to the year number.
The fixed 543-year offset
The calculator's JavaScript code defines two functions:
convertGregorianToThai(gregorianYear)returnsgregorianYear + 543.convertThaiToGregorian(thaiYear)returnsthaiYear - 543.
Both operate on plain integers. There is no rounding, no fractional part, and no adjustment for month or time zone. The result is always a whole year. The U.S. Naval Observatory explains that the Gregorian calendar's leap-year rule affects the number of days in a year but does not change the year number itself, so 2024 CE still maps to 2567 BE by the same +543 shift. The offset stays fixed across leap and non-leap years.
Inputs, defaults, and priority
The calculator provides these controls:
| Control | Purpose | Default | What the code does with it |
|---|---|---|---|
Date picker (input-date) | Full date for conversion | Today's date, set on page load | Parsed by new Date(inputDateValue); its getFullYear() is read when the year field is empty. |
Year field (year-input) | Standalone year for conversion | Current year, set on page load | parseInt(yearInputValue) supplies the source year. This field takes priority over the date picker when both have values. |
Time zone selector (input-timezone) | Output formatting only | UTC | Passed to formatDateWithEra as the timeZone option. It does not touch the year arithmetic. |
| Conversion type radios | Direction of conversion | Gregorian to Thai (BE) | Value gregorian-to-thai calls the add function; thai-to-gregorian calls the subtract function. |
On page load, setCurrentDate() writes today's local date into the date picker and the local year into the year field. It also shows the current BE year by adding 543 to the local year.
Output fields and formatting
After you press Convert, the result area shows:
- Main result: the converted year as a plain number.
- Input year display: the source year with
CEorBEattached. - Calendar type: labels such as "Gregorian โ Thai BE."
- Era difference: fixed text "543 years."
- Current BE year: the year from
new Date().getFullYear() + 543. - Formatted input and output: full date strings that use
Intl.DateTimeFormatwith the selected time zone, then appendCEorBEmanually.
If only the year field is used, the formatted lines show just the year values, not a full date.
Time zone selection and its limits
The time zone list contains IANA identifiers like America/New_York and Asia/Bangkok. The selected value is used only inside formatDateWithEra, which calls date.toLocaleDateString('en-US', { timeZone: timezone, ... }). That changes the displayed weekday, month, and day for the full date lines.
The underlying year extraction uses date.getFullYear() or the value from parseInt(yearInputValue). A timezone-less JavaScript Date from an input like "2025-01-01" is parsed in the browser's local time zone. Adding or subtracting 543 is elapsed year arithmetic on an integer, not a selected-zone calendar operation. The code does not apply IANA time zone rules to the year number.
For example, if you choose Asia/Bangkok and enter the date "2025-01-01," the formatted output shows that date as it appears in Bangkok time. But the converted year remains 2568 BE because the year math never consults the time zone. Similarly, choosing America/New_York changes the display text, not the number.
Blank, malformed, and edge-case inputs
Blank inputs: If both the date picker and the year field are empty, the code runs alert('Please enter a date or year to convert') and returns without changing the result. This is the only explicit validation path.
Malformed inputs: The year field is type="number", but the JavaScript reads it with parseInt() and does not guard against NaN. If a non-numeric string reaches the field, parseInt can return NaN, and the arithmetic may produce NaN in the result. The date picker normally restricts entries to valid date strings, but the code does not add its own validation.
Out-of-range inputs: The year input has min="1" and max="9999", but the conversion functions do not enforce those limits. If a value outside that range is submitted, the code still adds or subtracts 543. The result may be a year that is not meaningful for the intended calendar context.
Negative values: A negative year in the year field will also be processed by parseInt and the arithmetic. The tool does not block it. The output will be a negative or smaller positive number depending on the direction.
Code-based worked examples
The Thai Year Converter examples below follow the calculator's actual input and output path.
Example 1: Gregorian to Thai
Type 2025 in the year field with "Gregorian to Thai (BE)" selected. The code runs 2025 + 543 = 2568. The main result shows 2568. The input line shows 2025 CE, and the output line shows 2568 BE.
Example 2: Thai to Gregorian
Switch to "Thai (BE) to Gregorian" and type 2500. The code runs 2500 - 543 = 1957. The main result shows 1957. The input line shows 2500 BE, and the output line shows 1957 CE.
Both examples use whole integers. The calculator does not round the result because the offset is an exact integer count.
Comparing with other calendar tools
This converter focuses on the Thai Buddhist Era's fixed offset from the Gregorian calendar. For other systems, such as the Persian or Chinese calendars, the arithmetic and rules differ. The Persian Calendar Converter handles the solar Hijri calendar used in Iran and Afghanistan, while the Chinese Calendar Calculator addresses the lunisolar system. Each tool is designed for its specific calendar's rules.
Thai Buddhist Era 543-Year Offset Guide with the Thai Year Converter
The Thai Buddhist Era begins 543 years before the Common Era. The calculator treats that as a fixed integer difference, so the same shift applies to every year it processes. The U.S. Naval Observatory confirms that calendar year numbering is independent of leap-year rules, which only affect the number of days in a year. The BIPM's definition of a day as 24 hours and 86,400 seconds is a separate unit conversion fact and does not influence this year-number arithmetic.
Frequently asked questions about Thai Year Converter
Does the time zone change the converted year?
No. The year arithmetic uses only the integer from the date picker or year field. The time zone affects the formatted date strings, not the 543-year offset.
What happens if I enter a year like 0 or -5?
The calculator does not block it. parseInt processes the number, and the code adds or subtracts 543. The output may not be meaningful for historical use.
Can I convert a date that includes a time?
The date picker accepts only a date, not a time. The year field is a standalone number. Formatted output shows the date but no clock time.
Why is the offset always 543?
The Thai Buddhist Era begins 543 years before the Common Era. The calculator treats that as a fixed integer difference, so the same shift applies to every year it processes.