Nepali Calendar by SudamHub shows a Bikram Sambat calendar UI on any <input>. Pick a date in Nepali — a hidden field quietly receives the equivalent English (AD) date, ready for your form or database. No build step, no framework, no npm.
Try it live — this is the real widget
Click the field — the calendar opens in Nepali.
The visible field shows the picked date in Bikram Sambat. A paired hidden input gets the AD equivalent automatically — your backend never has to know a Nepali calendar was involved.
No npm, no bundler, no framework. Two files loaded from the CDN, or copied next to your page — that's the entire footprint.
BS 2000–2090 data, round-trip tested day-by-day across all 33,238 days in range. Zero mismatches.
Two tags, one input. No build step, under a minute.
Real widget, not a screenshot. Navigate months and years, pick a date, and watch the form payload update below.
No date selected yet — click the field above.
Form payload
Passed as the second argument to NepaliCalendar.attach().
| Option | Default | Controls |
|---|---|---|
| lang | 'ne' | Nepali script or English month names |
| nepaliDigits | true | Render digits as ०१२... instead of 012... |
| hiddenInputName | <name>_ad | Name of the auto-created hidden AD field |
| hiddenInputSelector | — | Reuse an existing input instead of auto-creating one |
| onSelect | — | Callback fired on date selection |
Just need BS ⟷ AD conversion without the picker widget? The same file exposes these directly.
Supported range: BS 2000–2090 (≈ AD 1943‑04‑14 to 2034‑04‑13).
Dates outside 2000–2090 BS throw an Error — wrap calls in
try/catch if the input isn't already validated.
A dependency-free JavaScript date picker that shows a Bikram Sambat (Nepali) calendar UI. When a date is selected, a hidden input receives the equivalent English (AD) date, so forms and databases keep working with ordinary Gregorian dates.
No. Two tags pointing at the jsDelivr CDN — one stylesheet link and one script tag. No npm install, no build step, no framework dependency.
Bikram Sambat 2000–2090, roughly AD 1943‑04‑14 to 2034‑04‑13. Conversions are round-trip tested day-by-day across the entire range with zero mismatches.
Yes, fully open source under the MIT license — free for personal and commercial projects.
Two tags. Under a minute. No more building a BS calendar from scratch.
View on GitHub →