How to create two days AllDay Event with Google Apps Script? -


i want use google apps script createalldayevent(title, date) create day google calendar, there 1 date parameter, create 1 day allday google calendar.

now need create 2 days allday google calendar (e.g.:from jun 28, 2013 jun 29, 2013), how do?

thanks help!

you need use createalldayeventseries(), accepts recurrence parameter.

var recurrence = calendarapp.newrecurrence().adddailyrule().times(2); var eventseries = calendarapp.getdefaultcalendar().createalldayeventseries('my day event',     new date('june 28, 2013'),     recurrence,     {guests: 'everyone@example.com'}); logger.log('event series id: ' + eventseries.getid()); 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -