Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function myFunction() {
- CalendarApp.getDefaultCalendar().createEventSeries('Dates Repeated',
- new Date('October 7, 2018 03:00:00 PM EST'),
- new Date('October 7, 2018 04:00:00 PM EST'),
- CalendarApp.newRecurrence()
- .addDate(new Date('October 8, 2018'))
- .addDate(new Date('October 10, 2018'))
- .addDate(new Date('October 11, 2018'))
- );
- CalendarApp.getDefaultCalendar().createEventSeries('Tue Thu Meeting',
- new Date('October 9, 2018 01:00:00 PM EST'),
- new Date('October 9, 2018 02:00:00 PM EST'),
- CalendarApp.newRecurrence().addWeeklyRule()
- .onlyOnWeekdays([CalendarApp.Weekday.TUESDAY, CalendarApp.Weekday.THURSDAY])
- .until(new Date('October 19, 2018')));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement