Edit in JSFiddle

var currentDate = new Date();  
var date = "12/12/2015";  
document.write(angular.isDate(currentDate));    
document.write("</br>");  
document.write(angular.isDate(date));