Bonus
The nepali.datepicker is built upon nepali.functions, so all the
functions available under the nepali.functions are available to use
after you include the nepali.datepicker javascript file.
Availabe NepaliFunctions (
View the full documentation)
- Get2DigitNo
- ParseDate
- ConvertToDateObject
- ConvertToDateFormat
- AD2BS
- BS2AD
- ConvertToUnicode
- ConvertToNumber
- NumberToWords
- NumberToWordsUnicode
- AD.GetCurrentDate
- AD.GetCurrentYear
- AD.GetCurrentMonth
- AD.GetCurrentDay
- AD.GetMonths
- AD.GetMonth
- AD.GetDays
- AD.GetDay
- AD.GetDaysShort
- AD.GetDayShort
- AD.GetDaysInMonth
- AD.DatesDiff
- AD.AddDays
- AD.GetFullDate
- AD.GetFullDay
- BS.ValidateDate
- BS.IsBetweenDates
- BS.GetCurrentDate
- BS.GetCurrentYear
- BS.GetCurrentMonth
- BS.GetCurrentDay
- BS.GetMonths
- BS.GetMonth
- BS.GetMonthsInUnicode
- BS.GetMonthInUnicode
- BS.GetFullDate
- BS.GetDaysUnicode
- BS.GetDayUnicode
- BS.GetDaysUnicodeShort
- BS.GetDayUnicodeShort
- BS.GetFullDay
- BS.GetFullDayInUnicode
- BS.GetDaysInMonth
- BS.DatesDiff
- BS.AddDays
- BS.IsEqualTo
- BS.IsGreaterThan
- BS.IsLessThan
- BS.IsGreaterThanOrEqualTo
- BS.IsLessThanOrEqualTo
Example
<script
src="https://nepalidatepicker.sajanmaharjan.com.np/v5/nepali.datepicker/js/nepali.datepicker.v5.0.2.min.js"
type="text/javascript"></script>
<script type="text/javascript">
console.log(NepaliFunctions.BS.GetCurrentDate()); </script>