Can you help me out in calling a date from spreadsheet?
I used getRange("range where date is present in my spreadsheet")
, if I use this function, then in logger.log it is showing me previous date.
Ex: if the date is 1st Jan 2020
, when I use this function for calling, it is showing me Dec 31st 2019
.
Here is the code that I used
function myfunction(){
var ss = SpreadsheetApp.getActiveSpreadsheet();
var cs = ss.getSheetByName("Sheet1");
var d1 = cs.getRange(2,3).getValue();
}
Now if I see in logger.log(d1); it is showing me previous date instead of, date that is present in the range given.