This was working yesterday and then just quit working today with the error "Cannot find method formatDate(string,string,string).". Any idea why this is going on?
var today = new Date();
sheetArchive.getRange('X3:X3').setValue(Utilities.formatDate(today, Session.getScriptTimeZone(), "yyyy-MM-dd HH:mm:ss")); // date submitted
Utilities.formatDate(new Date(), x, y)works,Utilities.formatDate(today, x, y)fails with the same error message.