I want to be able to remove the existing date value from a date column in my database by setting the value of the field to null.
I am developing in Swift. I have tried NSNull and Nil but both cause errors.
I want to be able to remove the existing date value from a date column in my database by setting the value of the field to null.
I am developing in Swift. I have tried NSNull and Nil but both cause errors.
Hi Will,
Could you please clarify what error you’re getting when you assign Nil and save the object?
Regards,
Mark
I can’t even build and run, as soon as I try to it comes up with an error saying I cannot assign a nil value to a date field.
I am not an expert in Swift, but I think the following two discussions may have the answer you’re looking for: