Convert date empty string to null

Creating or updating with an empty string for a date field should be possible. The empty string should be interpreted as null for date fields as is already the case for other types.