I'm trying to trigger a spreadsheet in google sheets to reset itself every 14 days but I need it to start doing that on a certain date (it's for company time sheets not that that's relevant). Here's what I have that works, triggering every 14 days...
function test() {
ScriptApp.newTrigger("14day_trigger")
.timeBased()
.everyDays(14)
Browser.msgBox('Testing!');
I want to start the 14 day cycle 2015, 06, 12. I tried with .atDate ...
function test() {
ScriptApp.newTrigger("14day_trigger")
.timeBased()
.atDate(2015, 06, 12)
.everyDays(14)
Browser.msgBox('Testing!');
But this gives the error -
Already chosen a specific date time with at() or atDate().
Can anyone help me?