Google Calendar Custom Recurring Events Using iCalendar (.ics) RRULE Definitions

Google Calendar Custom Recurring Events Using iCalendar (.ics) RRULE Definitions

When scheduling recurring network maintenance windows—such as the first weekday or first weekend of every month—Google Calendar’s built-in UI often falls short. By writing a minimal RFC 5545 iCalendar (.ics) file with a custom RRULE, you can import any recurring schedule cleanly.

You’re going to need to get out your favorite text editor, you should probably use a text editor that can edit in multiple types of formats. I recommend Notepad++ for Windows users (or VS Code / Neovim on Linux and macOS), it’s free and located here:

https://notepad-plus-plus.org/download

From there you’ll want to create a document that ends in .ics using a format similar to below.

For instance every month on the first weekday:
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20161231
DTEND:20161231
RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=+1;WKST=SU
SUMMARY:Every Month on the first weekday
END:VEVENT
END:VCALENDAR

And then we have every month on the first weekend day:

cli
BEGIN:VCALENDAR

BEGIN:VEVENT

DTSTART:20000102

DTEND:20000102

RRULE:FREQ=MONTHLY;BYDAY=SA,SU;BYSETPOS=+1;WKST=SU

SUMMARY:Every first weekend

END:VEVENT

END:VCALENDAR

The day codes are as follows:

cli
Sunday=SU

Monday=MO

Tuesday=TU

Wednesday=WE

Thursday=TH

Friday=FR

Saturday=SA

>_ Engineering Discussion 2 Comments

+ Add Field Note ↓
  1. Using raw RFC 5545 RRULE BYDAY=2TU,4TH syntax inside an imported .ics file is such a clean workaround for Google Calendar's UI limitations on bi-monthly maintenance windows. Thanks for sharing!

  2. I used this exact .ics RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1TH pattern to schedule our quarterly BGP failover drills on the first Thursday after the first Monday. Works like magic.

Leave a Technical Comment

Share CLI tips, hardware notes, or questions below. Inline backticks (`command`) are supported.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Engineering Notes