Date Picker: Value with different date format is not validated properly and is saved as empty