Fixing another bug when date format is not ISO 8601 #270

Passing the format of the date field to moment.js solves the validation error when date format of the field is not like YYYY-MM-DD.