Convert date regex to date before comparison. Closes #503.

The required() does a clone of the original object. 
Because of date the format comparison doesn't return true and a moment object is created using the date format.