Convert Thai Buddhist Era (B.E.) Dates in Google Sheets
Thai documents show years like 2567 instead of 2024. Here's how to turn Buddhist Era dates into real dates in Google Sheets, and back again, without breaking your calculations.
Kumron Boonget4 Dec 2026 · 3 min read
If you work with Thai colleagues, government forms or tax invoices, you'll see years like 2567 instead of 2024. That's the Buddhist Era (B.E.), the calendar used on official documents in Thailand. Google Sheets always works in the Gregorian calendar (C.E.), so mixing the two without care gives strange results, like negative ages or durations of 200,000 days. Here are the formulas to convert correctly in both directions.
Ground rules
- B.E. = C.E. + 543, so 2024 C.E. is 2567 B.E.
- Always store real dates in C.E. in your sheet, and add a separate column that displays B.E. Sorting, filtering and calculations will then stay correct
- The date formats in Google Sheets (Format → Number) have no option to show the year in B.E., so you need a formula
Tip Go to File → Settings → Locale and choose Thailand (or the United Kingdom) so the sheet reads dates as day/month/year. With the United States locale, typing 05/03/2024 becomes May 3 instead of March 5.
1. Convert B.E. to a real date (B.E. → C.E.)
This is the one you'll need most. Say A2 holds a B.E. date like 15/03/2567 that someone typed into the sheet, or you paste data from a Thai system, and Google Sheets stores it in one of two ways:
- As a date in the year 2567 C.E. It looks right in the cell, but every calculation is off by 543 years
- As text, because it can't read it. You can spot this when the value is left-aligned in the cell
This formula handles both cases and returns the real C.E. date, 15/03/2024, which you can calculate with:
=LET(d,IF(ISNUMBER(A2),A2,LET(p,SPLIT(A2,"/"),DATE(INDEX(p,1,3),INDEX(p,1,2),INDEX(p,1,1)))),IF(YEAR(d)>2400,DATE(YEAR(d)-543,MONTH(d),DAY(d)),d))How it works:
ISNUMBER(A2)checks whether the sheet already stored the value as a date- If it's text,
SPLIT(A2,"/")separates the day, month and year, andDATE()builds a date from them - If the year is above 2400, it's B.E., so 543 is subtracted. Dates already in C.E. are left as they are
If the result shows a number such as 45366, select the column and go to Format → Number → Date.
Note Ever noticed that in the same column, some rows are dates and others are text? Take 29/02/2567: Google Sheets reads it as the year 2567 C.E., which is not a leap year, so February 29 doesn't exist and the value stays as text. The formula above fixes both kinds of rows at once.
2. Show a date in B.E. (C.E. → B.E.)
When you send a sheet or a report to Thai colleagues or a government office, they'll expect B.E. Assume cell A2 holds a normal C.E. date, 05/03/2024, and you want another cell to show it in B.E.
| A2 (C.E.) | Style | Result (B.E.) |
|---|---|---|
| 05/03/2024 | Numeric | 05/03/2567 |
| 05/03/2024 | Short Thai month | 5 มี.ค. 2567 |
| 05/03/2024 | Full Thai month | 5 มีนาคม 2567 |
Numeric returns 05/03/2567
=TEXT(A2,"dd/mm/")&(YEAR(A2)+543)Short Thai month returns 5 มี.ค. 2567
=DAY(A2)&" "&CHOOSE(MONTH(A2),"ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.")&" "&(YEAR(A2)+543)Full Thai month returns 5 มีนาคม 2567, as used in formal letters and quotations
=DAY(A2)&" "&CHOOSE(MONTH(A2),"มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม")&" "&(YEAR(A2)+543)To fill a whole column with one formula, put this in B2:
=ARRAYFORMULA(IF(A2:A="",,TEXT(A2:A,"dd/mm/")&(YEAR(A2:A)+543)))And for the current year in B.E., use =YEAR(TODAY())+543.
Caution The formulas in this section return text, not dates. Use them for display and printing, but always calculate from the original C.E. column.
3. Use it in Apps Script (emails, reports, PDFs)
If you send emails or build documents with Apps Script and need B.E. dates for Thai readers, use this function:
const TH_MONTHS = ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'];
function thaiDate(d) {
const [day, mon, year] = Utilities.formatDate(d, 'Asia/Bangkok', 'd/M/yyyy').split('/').map(Number);
return day + ' ' + TH_MONTHS[mon - 1] + ' ' + (year + 543);
}
/**
* Shows a date in B.E. with a short Thai month. Use it in the sheet: =THAIDATE(A2) or =THAIDATE(A2:A100)
* @customfunction
*/
function THAIDATE(d) {
if (Array.isArray(d)) return d.map(row => row.map(THAIDATE));
return d instanceof Date ? thaiDate(d) : d;
}- In code,
thaiDate(new Date())returns something like4 ธ.ค. 2569 - In the sheet, type
=THAIDATE(A2)like any other formula, or pass a whole range:=THAIDATE(A2:A100)
Tip Keep
'Asia/Bangkok'in the code. Without it, dates close to midnight can be off by one day, because the script's time zone may not match Thailand's.
Summary
| What you want | What to use |
|---|---|
| Turn a typed B.E. date into a real date | The LET formula in section 1 |
| Show B.E. as numbers | =TEXT(A2,"dd/mm/")&(YEAR(A2)+543) |
| Show Thai month names | CHOOSE(MONTH(A2), ...) in section 2 |
| B.E. dates in emails or reports | The thaiDate() function in section 3 |
Just remember one rule: store in C.E., display in B.E. Do that, and the date calculations in your sheet will stay correct.
Comments
No comments yet. Be the first to share your thoughts or ask a question.
Read next
AppSheet Automation: Email Your Manager the Moment a Job Is Closed, No Code
Build your first AppSheet bot that sends an email every time someone closes a job, with the job name, time and who closed it. Builds on the "Close job" button from the previous article.
Build a Search Page for Your Google Sheets Data with Apps Script in 15 Minutes
Turn a sheet with thousands of rows into a simple web page where anyone on your team can type and find what they need, without opening the sheet.
Build an Action Button in AppSheet: Close a Job in One Tap, With Time and User Logged
Stop opening the form and editing field by field. Build a "Close job" button that changes the status, records the time and saves who tapped it, all in one tap.