Nepali Date Picker - Demo & Documentation
Usage
Options
Option | Data Type | Description |
closeOnDateSelect |
Boolean
Default value : true |
Enable/disable close date picker on date select. |
dateFormat |
String
Default value : "%D, %M %d, %y" |
Set det format.
dateFormat: " %D, %M %d, %y" dateFormated output: बिही, फागुन १०, २०७४
|
minDate | String |
Set min date select range.
"सोम, जेठ १०, २०७३" Note: Date should be formatted as dateFormat option provided |
maxDate | String |
Set max date select range.
"मंगल, जेठ ३२, २०७३" Note: Date should be formatted as dateFormat option provided |
Event Handler:
Event | Description |
show | Event trigger on calendar show |
dateSelect | Event trigger on select date |
dateChange | Event trigger on date change |
yearChange | Event trigger on year change |
monthChange | Event trigger on month change |
API:
- Global variable calendarFunctions
-
Month start form 0 index
1: January | बैशाख
12: December | चैत
-
Week Day start form 0 index
1: Sunday | आईत
7: Saturday | शनि
Function | Parameter | Description |
getNepaliNumber(number) |
|
Return equivalent number in nepaliNumber |
getNumberByNepaliNumber(nepaliNumber) |
|
Return equivalent number from nepaliNumber |
getBsMonthInfoByBsDate(bsYear, bsMonth, bsDate, dateFormatPattern) |
|
Return Bs month data |
getAdDateByBsDate(bsYear, bsMonth, BsDate) |
|
Return corresponding Ad date by Bs date |
getBsMonthDays(bsYear, bsMonth) |
|
Return number of days in bsMonth |
getBsDateByAdDate(adYear, adMonth, adDate) |
|
Return corresponding Bs date data by Ad date |
getBsYearByAdDate(adYear, adMonth, adDate) |
|
Return corresponding Bs year by Ad date |
getBsMonthByAdDate(adYear, adMonth, adDate) |
|
Return corresponding Bs month by Ad date |
bsDateFormat(dateFormatPattern, bsYear, bsMonth, bsDate, day) |
|
Return formated Bs date |
parseFormattedBsDate(dateFormat, dateFormattedText) |
|
Parse formated date |