BT San Technology

16 April 2026

Thai dates, Buddhist and Gregorian years and time zones: designing time data in a web app without drift

2 min read · Websites and web apps

Illustration: a tablet showing a schedule with two time-zone clocks, a hand holding a paper calendar, a Thai flag and a desk clock
AI-generated illustration

A date alone and the time an event happened mean different things. The display format differs from the value that is stored and passed between systems. The user's language, calendar and time zone.

Implementation steps

  1. Separate due dates, birth dates and record times
  2. Define the input, storage and display formats
  3. Test crossing midnight, users abroad and file imports
  4. State the time zone in the reports that need it

Example deliverable

Deliverable: a table of time data types for an appointment system

Benefits

Helps reduce mismatches between due dates and reports.

Limitations and cautions

Simply adding or subtracting years does not cover every case. Use tools that support this, and test with real data.

Starting references

  • MDN — Intl.DateTimeFormat
  • W3C — Working with Time Zones

References

  1. MDN — Intl.DateTimeFormat (accessed 2026-11-21)
  2. W3C — Working with Time Zones (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer