I'm trying to create a simple button on a GGL sheet dashboard to jump to another sheet with the current date in their names (Go to today) and in the format of "mmmm d", such as "July 24".
I almost have no knowledge about this so of course the script do not work, and I think because the variable is not compatible with getSheetByName? Here's the current script:
function totodaysheet() {
var spreadsheet = SpreadsheetApp.getActive();
var date = Utilities.formatDate(new Date(), Session.getScriptTimeZone(), "mmmm d");
spreadsheet.setActiveSheet(spreadsheet.getSheetByName(date), true);
};
Would you be able to advise on this?