evt.adds.attributes.eventdate = new Date(Date.now());
This generates the following error: "Error: Unable to complete operation"
However, if I try to set the value of a text field it works fine, e.g.:
evt.adds.attributes.description = "test";
So I suppose the problem has to do with the field type. How can this be resolved?
Here is my entire code for reference. Thanks