Execute
<!DOCTYPE html> <html> <head> <title> Wikitechy AngularJS Tutorials</title> </head> <script src="https://ajax.googleapis.com/ajax/libs/ angularjs/1.5.6/angular.min.js"> </script> <body> <div ng-app="myApp" ng-controller="dateCtrl"> <h2>Wikitechy date Filter in AngularJS</h2> <h3>Date = {{ today | date }}</h3> </div> <script> var apps = angular.module('myApp', []); apps.controller('dateCtrl', function($scope) { $scope.today = new Date(); }); </script> </body> </html>
www.wikitechy.com © Copyright 2016. All Rights Reserved.