I'm trying to retrieve the time value from google sheet cell via GAS. I put in the cell value (10:30) and get it with the following code (video)
function test_time_getting() {
var sheet, value, p;
sheet = SpreadsheetApp.getActive().getSheetByName('mockup data');
value = sheet.getRange(1,1).getValue();
Logger.log(value);
}
But unexpectedly I received next result in the log:
[15-09-27 05:07:43:784 PDT] Sat Dec 30 10:26:59 GMT+02:27 1899
How it could happen and what to do to retrieve proper time value?