TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Adding DatePicker to the Web Page in AngularJS
Pradeep Sahoo
May 18
2015
Code
5.1
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!doctype html>
<html lang=
"en"
>
<head>
<meta charset=
"utf-8"
/>
<script
src=
"http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"
>
</script>
<script>
function MainController($scope) {
$scope.date =
new
Date();
}
</script>
</head>
<body ng-app>
<div ng-controller=
"MainController"
>
<input type=
"date"
ng-model=
"date"
value=
"{{ date | date: 'yyyy/MM/dd' }}"
/>
<br />
<br />
<b>Selected Date
is
: </b>{{ date | date:
'dd/MM/yyyy'
}}
</div>
</body>
</html>
Date Picker
Calender in Angular JS Web Page AngularJS