SHARE
TWEET

Untitled

a guest Jun 15th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top