date value type returns null when input value is null.