Nepali DateNepali DateBikram Sambat Date Engine
Constants

WEEK_EN

Array containing full English names for all seven days of the week starting from Sunday.

The WEEK_EN constant is an array containing the full English weekday names ordered from Sunday at index 0 through Saturday at index 6. This ordering matches the standard JavaScript day index convention returned by the getDay method, allowing seamless weekday lookups in English interfaces.


Import

import { WEEK_EN } from "nepali-date-library";

Value

export const WEEK_EN = [
  "Sunday",
  "Monday",
  "Tuesday",
  "Wednesday",
  "Thursday",
  "Friday",
  "Saturday",
];

Index Mapping

IndexDay Name
0"Sunday"
1"Monday"
2"Tuesday"
3"Wednesday"
4"Thursday"
5"Friday"
6"Saturday"

Examples

Getting Current Weekday Name

import { WEEK_EN, NepaliDate } from "nepali-date-library";

const date = new NepaliDate("2081-01-25");
console.log(WEEK_EN[date.getDay()]); // "Thursday"

Advertisement

On this page