Hi @sp13test ,
If the CreateDate is a date column, try to modify as below:
var oListItem = list.addItem(itemCreateInfo);
const timeElapsed = Date.now();
const today = new Date(timeElapsed);
oListItem.set_item('CreateDate', today);
oListItem.set_item('Title', Date.now().toString());
oListItem.update();
Thanks
Best Regards
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.