Convert an empty string to null for datetime only