Constants
WEEK_NP
Array containing full Devanagari Nepali names for all seven days of the week starting from Sunday.
The WEEK_NP constant provides the full Devanagari Nepali names for the seven days of the week, beginning with Aaitabar at index 0 and concluding with Shanibar at index 6. It enables complete localization for calendar headings, date labels, and event scheduling in Nepali language applications.
Import
import { WEEK_NP } from "nepali-date-library";Value
export const WEEK_NP = [
"आइतबार",
"सोमबार",
"मंगलबार",
"बुधबार",
"बिहिबार",
"शुक्रबार",
"शनिबार",
];Index Mapping
| Index | Devanagari Weekday | English Equivalent |
|---|---|---|
0 | "आइतबार" | Sunday |
1 | "सोमबार" | Monday |
2 | "मंगलबार" | Tuesday |
3 | "बुधबार" | Wednesday |
4 | "बिहिबार" | Thursday |
5 | "शुक्रबार" | Friday |
6 | "शनिबार" | Saturday |
Examples
Getting Current Weekday Name in Nepali
import { WEEK_NP, NepaliDate } from "nepali-date-library";
const date = new NepaliDate("2081-01-25");
console.log(WEEK_NP[date.getDay()]); // "बिहिबार"Related
WEEK_SHORT_NP: Abbreviated Devanagari weekday names.WEEK_EN: Full English weekday names.NepaliDate.getDayName(): Static helper with locale options.
Advertisement
WEEK_EN
Array containing full English names for all seven days of the week starting from Sunday.
WEEK_SHORT_EN
Array containing abbreviated English weekday names ordered from Sunday through Saturday.