Hi Thomas,
Disclaimer: I'm not from the official Google Ads Scripts team, but maybe I can help with your question.
You then have several options, but I would then use the Methods & Properties of the Date Object to combine the output you want. See the example script below:
------
function main() {
const SPREADSHEET_URL = 'https://docs.google.com/YOUR-SPREADSHEET-URL-HERE'
const SHEET_NAME = 'Sheet1';
const ss = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
const sheet = ss.getSheetByName(SHEET_NAME);
const value = sheet.getRange('A1').getValue();
console.log(value);
console.log(typeof(value));
console.log(value.getDate());
console.log(value.getMonth());
console.log(value.getFullYear());
}
--------
The output of the script looks like this:
Note, that the day & month are off by 1. This is because counting starts at zero, so January is month 0.
It even contains a small chapter about Google Sheets
I hope this helps. Good luck!
Gr, Martijn