INTECH

Preparing your experience

Explore INTECH

Code smart, Not Harder

INTECH / OPEN SOURCE

Chronera.

Calendar dates and time zones.
Try it, then take the code.

JAVASCRIPT + TYPESCRIPTv0.2.8
npm install @intech-software/chronera@0.2.8

TRY CHRONERA / 3 EXAMPLES

Choose what to try

Change a value → Run → Copy the code

Display a Buddhist year

Enter a Gregorian date to see the same day in Thai and English.

Enter a Gregorian year, such as 2026, rather than 2569.

RESULT

Thai · Buddhist calendar
19 ตุลาคม 2569
English · Gregorian calendar
19 October 2026

Results for the starting values.

JAVASCRIPT / ESM

Code and results come from the same run.

import { parseLocalDate, formatWithPattern } from '@intech-software/chronera';

const date = parseLocalDate("2026-10-19");
console.log(formatWithPattern(date, 'd MMMM yyyy', {
  locale: 'th-TH', calendar: 'buddhist', numberingSystem: 'latn',
}));
console.log(formatWithPattern(date, 'd MMMM yyyy', {
  locale: 'en-GB', calendar: 'gregory', numberingSystem: 'latn',
}));

What this code does: parseLocalDate reads a date without a time. The calendar option chooses how to display it; there is no need to add 543 yourself.

Chronera 0.2.8 · Runs on your device. Month names can vary with the runtime’s locale data.

Before using it

Full documentation
  1. Install: Use Node.js 22.14 or newer, or an ESM bundler for a website.

  2. Choose the data type: Use parseLocalDate for a date alone, and parseInstant for a timestamp with a UTC offset.

  3. Format: Choose the language, calendar and time zone that match the task.

INTECH uses Chronera for article dates, project dates and project briefs.

Report an issue