AngularJS Datepicker Using JS Files And Reference

AngularJS Datepicker using JS files and reference


Now we are going see some DatePicker Reference files below .
  1. <script type="text/javascript" src="//"></script>  
  2. <script type="text/javascript" src="//"></script>  
  3. <script src="//"></script>  
  4. <script src="//"></script>  
Step 2

Here I defined normal input text box and assigned id and ng-model
  1. <label>Licenceexpiry Date</label>  
  2. <input type="text" name="dob" id="DOB" title="dob" ng-model="dob" >  
Step 3

Then call textbox id and assign to datepicker from  below JS code.
  1. <script>  
  2.     $('#dob').datetimepicker({  
  3.         useCurrent: false,  
  4.         format: 'DD/MM/YYYY',  
  5.     });  
  6. </script>  
Just put this scriptag code and mention your text box id and then give format on DD/MM/YYYY or MM/DD/YYYY

I hope this datepicker is mostly helpful for you.