Nepali DateNepali DateBikram Sambat Date Engine
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

IndexShort NameFull NameEnglish 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(" | "));
// "आइत | सोम | मंगल | बुध | बिहि | शुक्र | शनि"

Advertisement

On this page