Skip to content

Introduction ​

Nepali Datepicker Pro is a self-owned Bikram Sambat ↔ Gregorian calendar engine with date, time, range and month pickers — framework-agnostic, and ready for vanilla JS, a plain <script> tag, jQuery, Vue and React.

  • BS 1970–2100 of validated calendar data
  • ~17 KB gzip, tree-shakeable
  • Zero runtime dependencies

What's in the box ​

ComponentWhat it does
Date & Time PickerA single date, with an optional same-screen time picker.
Date Range PickerStart/end range with a presets rail and Nepali fiscal-year helpers.
Month PickerOne BS month, resolved to the AD date range it covers.
Helper functionsA NepaliFunctions-compatible BS↔AD toolkit, usable with no picker at all.

Why another Nepali datepicker ​

Most Nepali date pickers are a jQuery plugin with a lookup table bolted on, and they force one calendar system on both your UI and your database. This one separates the two concerns:

  • The engine is independent of the UI. nepaliFunctions and the calendar adapter work on their own — you can convert dates, validate them and do BS month math without rendering anything. See Helper functions.
  • What you display is not what you submit. A BS-mode picker — in Nepali digits if you set locale: 'ne', English by default — can still hand your backend a clean AD ISO string, with no conversion glue in your form handler. See Options.
  • One package, every stack. The same core is wrapped for Vue, React, jQuery and plain HTML auto-init, so a mixed codebase doesn't need four different pickers.

Accuracy ​

The bundled adapter is O(1) and validated against the official calendar for BS 1970–2100. Conversions outside that window are rejected rather than silently approximated.

Next steps ​

Released under the MIT License.