Bug 914448 - Moved date from hardcoded format string into date object. F...

Fixes date validation for some locales (e.g. es).
Related bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=914448