Add support for different date validation formats (#1504)