I loop through the data and split each string into an integer and float.
var sh = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("ScratchPad");
var data = sh.getDataRange().getValues();
temp = data[0][0];
data[0] = temp.split(";");
for( var i=1; i<data.length; i++ ) {
temp = data[i][0];
temp = temp.split(";");
Logger.log(temp[0]);
Logger.log(parseInt(temp[0]));
data[i][0] = new Date(year,month,parseInt(temp[0]));
data[i].push(parseFloat(temp[1]));
}
sh.getRange(1,1,data.length,2).setValues(data);
The first part is the day of the month. But when I parseInt 08 and 09 return NaN. All other numbers work properly. Ideas?