Get nepali day of week from Date object or index (with 0 for Sunday and so on)
$ npm install --save get-nepday-of-week
Note: If no argument is passed, the dayOfWeek for current day is returned.
var getNepdayOfWeek = require('get-nepday-of-week');
getNepdayOfWeek(new Date('2015/10/24'))
//=>{ full: 'शनिबार', short: 'शनि', min: 'श' }
getNepdayOfWeek({"lang": "en"})
//=>{ full: 'Aaitabaar', short: 'Aaita', min: 'Aai' }
getNepdayOfWeek(2)
//=>{ full: 'मंगलबार', short: 'मंगल', min: 'मं' }
getNepdayOfWeek(1, {"lang": "ne", "type": "short"})
//=>सोम
getNepdayOfWeek(-2)
//=>[RangeError: Expected the value of inp between 0-6]
Type: Date
or Number
Range: 0-6
if Number
with 0 for Sunday/Aaitabaar and so on.
Type: string
Default: ne
Type: string
Possible values: full
(eg. Aaitabaar), short
(eg. Aaita), min
(eg. Aai)
MIT © techgaun