I am getting the following error when trying to set a date value using @Date value with replaceItemValue.
The error I am getting occurs on the last line of code here:
var dt = @Date(2012,1,1);
docContractor.replaceItemValue("NewField","Hello World");
docContractor.replaceItemValue("ContractorStartDateTime",dt);
The error is:
Error while executing JavaScript action expression Script interpreter error, line=21, col=31: [TypeError] Exception occurred calling method NotesDocument.replaceItemValue(string, Date) null
How can I fix this?