Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. function myFunction() {
  2.  
  3. CalendarApp.getDefaultCalendar().createEventSeries('Dates Repeated',
  4. new Date('October 7, 2018 03:00:00 PM EST'),
  5. new Date('October 7, 2018 04:00:00 PM EST'),
  6. CalendarApp.newRecurrence()
  7. .addDate(new Date('October 8, 2018'))
  8. .addDate(new Date('October 10, 2018'))
  9. .addDate(new Date('October 11, 2018'))
  10. );
  11. CalendarApp.getDefaultCalendar().createEventSeries('Tue Thu Meeting',
  12. new Date('October 9, 2018 01:00:00 PM EST'),
  13. new Date('October 9, 2018 02:00:00 PM EST'),
  14. CalendarApp.newRecurrence().addWeeklyRule()
  15. .onlyOnWeekdays([CalendarApp.Weekday.TUESDAY, CalendarApp.Weekday.THURSDAY])
  16. .until(new Date('October 19, 2018')));
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement