Skip to content

Instantly share code, notes, and snippets.

@bmelton
Created April 14, 2014 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmelton/10686441 to your computer and use it in GitHub Desktop.
Save bmelton/10686441 to your computer and use it in GitHub Desktop.
angular.module('FixDateFilter', [])
.filter('fixdate', function() {
return function(input) {
if(input == null)
output = "N/A";
else if(input == "midnight")
output = "N/A";
else if(input == "")
output = "N/A";
else if(input == "1900-01-01")
output = "N/A";
else
output = input;
return output;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment