Using google app script, I am accessing a google sheet of a rota with one sheet per year, with a row per day, with a column for the date.
To select the row of today's date, I would like to use something similar to getDay() to get the current days through the year (e.g. for 2020-02-11, the 42nd day of the year).
I've found the getDay() function in the docs but this is by month.
To avoid a function that calculates this (or a superfluous field in the source sheet, or scanning the rows for a date), is there a native function or simple way in google apps script to get the number of the current day of the year?