Create Validating a Date effectively.js