nepalidateconvert
v3.0.2
Published
A javascript package to convert nepali date BS (Bikram Sambat) to AD and vice-versa, calcuate age from nepali date (BS). Fixed Smdkl package till 2083
Maintainers
Readme
engtonepdateconvert
A javascript package to convert nepali date BS (Bikram Sambat) to AD and vice-versa. Also include a feature to calculate age in nepali date.
Installation
npm install nepalidateconvertUsage
const { adToBs, bsToAd, calculateAge } = require('nepalidateconvert');
try {
const bsDate = adToBs('2078-03-05');
console.log(bsDate);
const myAge = calculateAge('2070-10-10');
console.log(myAge);
} catch (e) {
console.log(e.message);
}Available Methods
dateFormat
Format the date to provide various output based on format string
Date Range
Date convert will works between these Date Range:
Date Range for English Date : 1921 AD to 2040 AD
Date Range for Nepali Date : 1978 BS to 2099 BS
License
MIT
EngtoNepDate
Nepali-English Date Converter (Till 2082 B.S.) Convert dates between Nepali (Bikram Sambat) and English (Gregorian) calendars accurately up to 2082 B.S. Supports both directions: Nepali to English and English to Nepali.
