Constants
MONTH_EN
Array containing standard romanized English names of all twelve Bikram Sambat calendar months.
The MONTH_EN constant is an immutable array containing the official romanized English names of the twelve Bikram Sambat months. The array is indexed starting from 0 for Baisakh up to index 11 for Chaitra, making it convenient for looking up month names corresponding to numeric month values returned by date methods.
Import
import { MONTH_EN } from "nepali-date-library";Value
export const MONTH_EN = [
"Baisakh",
"Jestha",
"Asar",
"Shrawan",
"Bhadra",
"Aswin",
"Kartik",
"Mangsir",
"Poush",
"Magh",
"Falgun",
"Chaitra",
];Index Mapping
| Index | Month Name | Gregorian Equivalent (Approximate) |
|---|---|---|
0 | "Baisakh" | Mid-April to Mid-May |
1 | "Jestha" | Mid-May to Mid-June |
2 | "Asar" | Mid-June to Mid-July |
3 | "Shrawan" | Mid-July to Mid-August |
4 | "Bhadra" | Mid-August to Mid-September |
5 | "Aswin" | Mid-September to Mid-October |
6 | "Kartik" | Mid-October to Mid-November |
7 | "Mangsir" | Mid-November to Mid-December |
8 | "Poush" | Mid-December to Mid-January |
9 | "Magh" | Mid-January to Mid-February |
10 | "Falgun" | Mid-February to Mid-March |
11 | "Chaitra" | Mid-March to Mid-April |
Examples
Accessing Month Names by Index
import { MONTH_EN, NepaliDate } from "nepali-date-library";
const date = new NepaliDate("2081-01-15");
console.log(MONTH_EN[date.getMonth()]); // "Baisakh"Related
MONTH_SHORT_EN: Abbreviated English month names.MONTH_NP: Devanagari Nepali month names.NepaliDate.getMonthName(): Static helper with formatting options.
Advertisement
NUMBER_NP
Array containing Devanagari numeral glyphs for digits zero through nine used for Nepali number localization.
MONTH_NP
Array containing official Devanagari Nepali names of all twelve Bikram Sambat calendar months.