Nepali Datepicker v4.0.5

Try it yourself

Enter your desired datepicker options on the textarea below. A valid option will be applied and relevant initialization code will be generated.



Enter Settings



Your Javascript initialization will look like:

Instructions

Usage

                <html lang="en">
                <head>
                <title>Nepali Datepicker v4.0.5</title>
                <meta http-equiv="x-ua-compatible" content="ie=edge" />
                <meta name="viewport" content="width=device-width, initial-scale=1.0" />
                <meta charset="utf-8" />
                <!-- Nepali Datepicker -->
                <link
                href="https://nepalidatepicker.sajanmaharjan.com.np/nepali.datepicker/css/nepali.datepicker.v4.0.5.min.css"
                rel="stylesheet" type="text/css"/>
                </head>
                <body>
                <p>
                <input type="text" id="nepali-datepicker" placeholder="Select Nepali
                Date"/>
                </p>

                <script
                src="https://nepalidatepicker.sajanmaharjan.com.np/nepali.datepicker/js/nepali.datepicker.v4.0.5.min.js"
                type="text/javascript"></script>
                <script type="text/javascript">
                window.onload = function() {
                var mainInput = document.getElementById("nepali-datepicker");
                mainInput.nepaliDatePicker();
                };
                </script>
                </body>
                </html>
            

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) Example
                <script
                src="https://nepalidatepicker.sajanmaharjan.com.np/nepali.datepicker/js/nepali.datepicker.v4.0.5.min.js"
                type="text/javascript"></script>
                <script type="text/javascript">
                console.log(NepaliFunctions.GetCurrentBsDate());
                </script>
            

Datepicker Options

Option Name Type Description

Inline Datepicker Options

Option Name Type Description