AnsweredAssumed Answered for esriFieldTypeDate?

Question asked by ndilekli on Feb 17, 2017
Latest reply on Feb 17, 2017 by ndilekli

Based on Robert Scheitlin, GISP's answer, I have been trying to set a date attribute programmatically using the following expression:


evt.adds[0].attributes.eventdate = new Date(;    


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[0].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