Bug 914448 - Moved date from hardcoded format string into date object. Fixes date validation for some locales (e.g. es)