VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-make-datepicker-using-angular-ui-bootstrap/

⇱ How to make Datepicker using Angular UI Bootstrap ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to make Datepicker using Angular UI Bootstrap ?

Last Updated : 23 Jul, 2025

In this article, we will see how to make Datepicker using Angular UI bootstrap. Angular UI Bootstrap is an Angular JS framework created by Angular UI developers for providing better UI which can be used easily.

Syntax:

<div uib-datepicker></div>

Download AngularUI from the link:

https://angular-ui.github.io/bootstrap/
 

Approach: 

  • First, add Angular UI bootstrap scripts needed for your project.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js"></script> <script src="https://angular-ui.github.io/bootstrap//ui-bootstrap-tpls-2.5.0.js"></script>
  • Make datepicker with its UIBootStrap classes which will set the UI look for the datepickers.
  • Now make different types of datepickers using different classes and run the code.

Example:

Output:

👁 Image

Reference: https://angular-ui.github.io/bootstrap//#!%23datepcker

Comment

Explore