Using Bower:
$ bower install datepicker-nepali --save`
- First include to page css and js files
<!-- this should go after your </body> -->
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="dist/jquery.nepaliDatePicker.min.js"></script>
<link rel="stylesheet" href="dist/nepaliDatePicker.min.css">
- Html
<input type="text" value="" name="date" class="date-picker">
- Javascript
$(".date-picker").nepaliDatePicker({
dateFormat: "%D, %M %d, %y",
closeOnDateSelect: true,
minDate : "सोम, जेठ १०, २०७३",
maxDate : "मंगल, जेठ ३२, २०७३"
});
$ bower install
$ npm install
#if you already install grunt dependencies
$ grunt update
$ grunt compress
$ grunt test