Constants
WEEK_SHORT_NP
Array containing short Devanagari abbreviations for each day of the week starting from Sunday.
The WEEK_SHORT_NP constant supplies short Devanagari abbreviations for each day of the week, beginning with index 0 for Aaitabar and ending with index 6 for Shanibar. These compact symbols are ideal for calendar grid headers and mobile date selectors where horizontal width is limited.
Import
import { WEEK_SHORT_NP } from "nepali-date-library";Value
export const WEEK_SHORT_NP = [
"आइत",
"सोम",
"मंगल",
"बुध",
"बिहि",
"शुक्र",
"शनि",
];Index Mapping
| Index | Short Name | Full Name | English Equivalent |
|---|---|---|---|
0 | "आइत" | आइतबार | Sunday |
1 | "सोम" | सोमबार | Monday |
2 | "मंगल" | मंगलबार | Tuesday |
3 | "बुध" | बुधबार | Wednesday |
4 | "बिहि" | बिहिबार | Thursday |
5 | "शुक्र" | शुक्रबार | Friday |
6 | "शनि" | शनिबार | Saturday |
Examples
Building Calendar Column Headers in Devanagari
import { WEEK_SHORT_NP } from "nepali-date-library";
// Generate week header row for UI calendar
console.log(WEEK_SHORT_NP.join(" | "));
// "आइत | सोम | मंगल | बुध | बिहि | शुक्र | शनि"Related
WEEK_NP: Full Devanagari weekday names.WEEK_SHORT_EN: Abbreviated English weekday names.date.format(): Formatting with thedddtoken.
Advertisement