removing utils.type, using angular.isDate instread