Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

How to make Timepicker using Angular UI Bootstrap ?

  • Last Updated : 06 Jun, 2021

In this article, we will see how to make Dropdown using Angular UI bootstrap.

Angular UI Bootstrap is an Angular JS framework created by Angular UI developers to provide better UI which can be used easily.


<div uib-timepicker></div>

Download AngularUI from the link:



  • First, add Angular UI bootstrap scripts needed for your project.

<script src=””></script>
<script src=””></script>
<script src=””></script>
<script src=””></script>

  • Make time picker with its UIBootStrap classes which will set the UI look for the time picker.
  • Now make different types of timepicker using different classes and run the code.



<!DOCTYPE html>
<html ng-app="gfg">
  <script src=
    <script src=
    <script src=
    <script src=
      // Adding Modules
      angular.module('gfg', ['ngAnimate', 'ngSanitize', 'ui.bootstrap']);
      angular.module('gfg').controller('timepicker', function ($scope) {
        $scope.ismeridian = true;
        $scope.lcltime = new Date();
        $scope.hrs = 1;
        $scope.mnt = 1;
    <link href=
    <div ng-controller="timepicker">
      <!-- making a timepicker -->
      <div class="column">
         <div uib-timepicker ng-model="lcltime"
              ng-change="changed()" hour-step="hrs" 
              minute-step="mnt" show-meridian="ismeridian">
           <pre class="alert alert-info">
           Local time: {{lcltime | date:'shortTime' }}



My Personal Notes arrow_drop_up
Recommended Articles
Page :