Skip to content

Instantly share code, notes, and snippets.

@komainu85
Created May 25, 2015 16:57
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 komainu85/e3d4838bae76e3058099 to your computer and use it in GitHub Desktop.
Save komainu85/e3d4838bae76e3058099 to your computer and use it in GitHub Desktop.
Entity Service Validation JavaScript
EntityService.utils.validator.add("notPastDate", function (value, params) {
var result = false;
var currentDate = new Date();
result = value >= currentDate;
return result;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment