AngularJS isDate
function is used to identify if a reference is isDate or not. This function return true
if reference is isDate.
Syntax
angular.isDate(value);
<!DOCTYPE html> <html ng-app=""> <head> <!-- www.techstrikers.com --> <title>My first AngularJS code</title> <script SRC="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"> </script> </head> <body bgcolor="#bnde45"> <fieldset> <legend>AngularJS IsDate Function</legend> <script> var cur_date = new Date(); var dt = "12/12/2015"; document.write(angular.isDate(cur_date)); document.write("</br>"); document.write(angular.isDate(dt)); </script> </fieldset> </body> </html>See Live Example