I want to check my type of variable, is it date. I want use angular.isDate() function.
If my variable have value "2016-08-10T08:38:49.397" angular.isDate() return false, what i can do?
<div ng-app="autoDrops" ng-controller="testController">
{{isDate(date)}}
<div>
var autoDrops = angular.module('autoDrops', []);
autoDrops.controller('testController', function ($scope) {
$scope.date = '2016-08-10T08:38:49.397'
$scope.isDate = function(value){
return angular.isDate(value);
}
});
Example is on the (jsfiddle)