Constants
MONTH_SHORT_EN
Array containing three letter abbreviated English names for all twelve Bikram Sambat months.
The MONTH_SHORT_EN constant provides three letter abbreviated English labels for each of the twelve Bikram Sambat months. It follows the zero based index convention from index 0 for Bai up to index 11 for Cha, making it ideal for compact calendar widgets, mobile screens, and table headers.
Import
import { MONTH_SHORT_EN } from "nepali-date-library";Value
export const MONTH_SHORT_EN = [
"Bai",
"Jes",
"Asa",
"Shr",
"Bhd",
"Asw",
"Kar",
"Man",
"Pou",
"Mag",
"Fal",
"Cha",
];Index Mapping
| Index | Abbreviation | Full Name |
|---|---|---|
0 | "Bai" | Baisakh |
1 | "Jes" | Jestha |
2 | "Asa" | Asar |
3 | "Shr" | Shrawan |
4 | "Bhd" | Bhadra |
5 | "Asw" | Aswin |
6 | "Kar" | Kartik |
7 | "Man" | Mangsir |
8 | "Pou" | Poush |
9 | "Mag" | Magh |
10 | "Fal" | Falgun |
11 | "Cha" | Chaitra |
Examples
Generating Compact Month Badges
import { MONTH_SHORT_EN, NepaliDate } from "nepali-date-library";
const date = new NepaliDate("2081-01-15");
console.log(MONTH_SHORT_EN[date.getMonth()]); // "Bai"Related
MONTH_EN: Full English month names.MONTH_SHORT_NP: Abbreviated Nepali month names.date.format(): Formatting with theMMMtoken.
Advertisement
MONTH_NP
Array containing official Devanagari Nepali names of all twelve Bikram Sambat calendar months.
MONTH_SHORT_NP
Array containing abbreviated Devanagari Nepali names for all twelve Bikram Sambat calendar months.