class CalendarApp method .createAllDayEvent()

CalendarApp is the Apps Script service.

.createAllDayEvent() is the method name you will see after a dot in your code.

What it does

Adds an all-day event to a calendar.

Why it's used

  • Mark holidays, deadlines, or PTO without start and end times.
  • Drop launch dates onto a shared planning calendar.

Common errors

  • Forgetting parentheses on createAllDayEvent. Write CalendarApp.createAllDayEvent(), not CalendarApp.createAllDayEvent or createAllDayEvent by itself.
  • Skipping dots between chained calls. Each step needs a dot, like CalendarApp.createAllDayEvent().
  • Adding spaces where they do not belong. Write CalendarApp.createAllDayEvent(), not CalendarApp .createAllDayEvent(), CalendarApp.createAllDayEvent (), or CalendarApp . createAllDayEvent().
  • Wrong capitalization. Use CalendarApp and createAllDayEvent, not calendarapp or createalldayevent.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about CalendarApp.createAllDayEvent().

Browse the blog