🔒
Immutable by Design
All date manipulation methods return fresh instances/objects without side effects.
Built for any JavaScript and TypeScript environment

npm install bn-calendarpnpm add bn-calendaryarn add bn-calendarbun add bn-calendardeno add npm:bn-calendarimport { BanglaCalendar } from 'bn-calendar';
// Current date in Bangla calendar
const today = new BanglaCalendar();
console.log(today.toString());
// Output: "শুক্রবার, ৯ ফাল্গুন, ১৪৩২ [বসন্ত]"
// Convert from Gregorian date string
const date = new BanglaCalendar('2026-02-20');
console.log(date.toJSON());
// Output: "১৪৩২-১১-০৮"
// Format with custom tokens
console.log(date.format('dd, DD mmmm (SS), YYYY বঙ্গাব্দ'));
// Output: "শু, ০৮ ফাল্গুন (বসন্ত), ১৪৩২ বঙ্গাব্দ"