Create validateDate.js