Extend the JS validation to support dd/mm/YYYY format (#1418)