I think that in your script, an error occurs at `new date` and `dest_rewsProjects` is not declared. And also, unfortunately, I cannot replicate your situation of "An unknown error has occurred, please try again later.".
If you want to retrieve the values from the cells "D2:D" and put the converted values to the column "J2:J" in the same sheet, how about the following modification?
function convertDate() {
var ss = SpreadsheetApp.getActive().getSheetByName('SHEETNAME');
var ssLR = ss.getLastRow();
var date_Range = ss.getRange(2, 1, ssLR, ss.getLastColumn());
var date_Vals = date_Range.getValues();
var newDateFormat = [];
for (var x = 0; x < date_Vals.length - 1; x++) {
var currDate = date_Vals[x][3];
var output = Utilities.formatDate(currDate, 'PST', "MM/dd/yyyy");
newDateFormat[x] = [output];
}
ss.getRange(2, 10, ssLR - 1, 1).setValues(newDateFormat);
}
I think that when the values of column "D" are the date object, `new Date()` is not required to be used at "currDate".
And, the length of "date_Vals" is the same as "ssLR". But when I saw your for loop, "var x = 0; x < date_Vals.length - 1; x++" is used. In this case, the number of rows is one less from "ssLR". Please be careful this.