Convert date empty string to null