I'm trying to get the month of a cell containing a value in this format (dd/mm/yyyy)
var date = new Date(scadenziario.getRange(eRow,eCol).getValue());
var month = date.getMonth();
I am not sure why, but it doesn't work. The cell cointaining the date display this in the sheet: 20/05/2021 I would like the month variable to be matching the month of the cell, in this case 5.
question from:https://stackoverflow.com/questions/65943513/google-sheets-macro-js