नेपाली मिति पिकर
A beautiful, modern Bikram Sambat date picker with multiple themes, bilingual support, and accurate BS/AD conversion. Zero dependencies, lightweight, and ready for your next project.
Packed with all the features you need for seamless Nepali date picking in your web applications.
Instant rendering with optimized performance for smooth interactions.
Default, Ocean, Forest, Sunset, and Rose themes included.
Built-in dark mode with smooth transitions.
Works perfectly on all devices and screen sizes.
Nepali, English, or both languages together.
Accurate conversion from 2070 to 2099 BS.
Full Devanagari number support (०-९).
Quick navigation with grid selectors.
Pure vanilla JavaScript, no jQuery needed.
Minimal bundle size for fast loading.
Simple API with intuitive methods.
Use instantly via jsDelivr CDN.
Auto-adjusts to viewport boundaries.
Full keyboard navigation support.
ARIA compliant for screen readers.
Extensive options and callbacks.
Choose your preferred installation method and get started in minutes.
<!-- 1. Include CSS from CDN --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ompandey07/nepali-datepicker@main/dist/nepali-datepicker.css"> <!-- 2. Add container element --> <div id="myDatePicker"></div> <!-- 3. Include JavaScript from CDN --> <script src="https://cdn.jsdelivr.net/gh/ompandey07/nepali-datepicker@main/dist/nepali-datepicker.js"></script> <!-- 4. Initialize the date picker --> <script> NepaliDatePicker.init('#myDatePicker', { mode: 'light', language: 'nepali', miniEnglishDates: true, onSelect: function(date) { console.log('Selected:', date); } }); </script>
<!-- 1. Download files from GitHub and include CSS --> <link rel="stylesheet" href="dist/nepali-datepicker.css"> <!-- 2. Add container --> <div id="datepicker"></div> <!-- 3. Include JS --> <script src="dist/nepali-datepicker.js"></script> <!-- 4. Initialize --> <script> NepaliDatePicker.init('#datepicker', { mode: 'light', language: 'nepali', theme: 'ocean' }); </script>
# npm package coming soon! npm install nepali-datepicker # For now, please use CDN or download files from GitHub # https://github.com/ompandey07/nepali-datepicker
Explore all themes, modes, and customization options with these interactive demos.
Customize every aspect of the date picker with these configuration options.
| Option | Type | Default | Description |
|---|---|---|---|
| mode | String | 'light' | 'light' or 'dark' color mode |
| language | String | 'nepali' | 'nepali' or 'english' language display |
| theme | String | 'default' | 'default', 'ocean', 'forest', 'sunset', 'rose' |
| miniEnglishDates | Boolean | false | Show small AD day number inside calendar cells |
| dateFormat | String | 'YYYY-MM-DD' | Output format: 'YYYY-MM-DD', 'DD-MM-YYYY', 'MM/DD/YYYY', etc. |
| range | Boolean | false | Enable date range picker with highlight effect |
| multiple | Boolean | false | Enable multi-date selection |
| inline | Boolean | false | Render date picker directly inside container |
| animation | String | 'fade' | Popup animation: 'fade' or 'slide' |
| unicodeDate | Boolean | false | Convert output numbers to Devanagari numerals (०-९) |
| minDate | Object | String | 1970 BS | Minimum selectable BS date |
| maxDate | Object | String | 2100 BS | Maximum selectable BS date |
| disableDates | Array | [] | Array of specific dates to disable |
| disableDaysBefore | Number | 0 | Disable days N days prior to today |
| disableDaysAfter | Number | 0 | Disable days N days after today |
| disableToday | Boolean | false | Disable selection of today's date |
| onSelect / onChange | Function | null | Callback function on date selection |
| onClose | Function | null | Callback function on calendar close |
Full control over the date picker with these powerful API methods.
// Initialize date picker const picker = NepaliDatePicker.init('#picker', options); // Get selected date picker.getDate(); // Returns: { bs: {...}, ad: {...}, formatted: '...' } // Set date programmatically picker.setDate(2081, 5, 15); // Open / Close / Toggle calendar picker.open(); picker.close(); picker.toggle(); // Clear selection picker.clear(); // Change theme dynamically picker.setTheme('ocean'); picker.setDark(true); // Destroy instance picker.destroy(); // ======================================== // Utility Functions // ======================================== // Convert BS to AD NepaliDatePicker.utils.bsToAd(2081, 5, 15); // Returns: { year: 2024, month: 8, day: 30, dow: 5 } // Convert AD to BS NepaliDatePicker.utils.adToBs(2024, 8, 30); // Returns: { year: 2081, month: 5, day: 15 } // Convert to Nepali numerals NepaliDatePicker.utils.toNepali(2081); // Returns: '२०८१' // Get today's BS date NepaliDatePicker.utils.getToday(); // Returns: { year: 2081, month: 5, day: 15 }
2070 to 2099.
Dates outside this range may not convert correctly. The date picker uses
Google Fonts (Noto Sans Devanagari) - ensure internet connectivity for
proper Nepali font rendering.
Works seamlessly on all modern browsers