🇹🇭 อ่านฉบับภาษาไทย →

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 BoongetKumron Boonget
4 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:

  1. As a date in the year 2567 C.E. It looks right in the cell, but every calculation is off by 543 years
  2. 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:

code
=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, and DATE() 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.)StyleResult (B.E.)
05/03/2024Numeric05/03/2567
05/03/2024Short Thai month5 มี.ค. 2567
05/03/2024Full Thai month5 มีนาคม 2567

Numeric returns 05/03/2567

code
=TEXT(A2,"dd/mm/")&(YEAR(A2)+543)

Short Thai month returns 5 มี.ค. 2567

code
=DAY(A2)&" "&CHOOSE(MONTH(A2),"ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.")&" "&(YEAR(A2)+543)

Full Thai month returns 5 มีนาคม 2567, as used in formal letters and quotations

code
=DAY(A2)&" "&CHOOSE(MONTH(A2),"มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม")&" "&(YEAR(A2)+543)

To fill a whole column with one formula, put this in B2:

code
=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:

js
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 like 4 ธ.ค. 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 wantWhat to use
Turn a typed B.E. date into a real dateThe LET formula in section 1
Show B.E. as numbers=TEXT(A2,"dd/mm/")&(YEAR(A2)+543)
Show Thai month namesCHOOSE(MONTH(A2), ...) in section 2
B.E. dates in emails or reportsThe 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.

#Google Sheets#Buddhist Era
Kumron Boonget
Kumron Boonget

Operations professional at a container and ISO tank depot in Thailand. He builds the systems his team uses every day with Google Sheets, Apps Script and AppSheet, from search pages to repair tracking and automatic alerts, and shares how to build them in plain language for non-programmers.

Comments

No comments yet. Be the first to share your thoughts or ask a question.

Leave a comment
Comments are reviewed before they appear.

Read next