Skip to content

Instantly share code, notes, and snippets.

@pndurette
Last active October 23, 2024 10:25
Show Gist options
  • Save pndurette/a6ef6769a6c81eb173b741733f94dbd0 to your computer and use it in GitHub Desktop.
Save pndurette/a6ef6769a6c81eb173b741733f94dbd0 to your computer and use it in GitHub Desktop.
iCal (.ics) template file for pay day event or Friday if on the weekend
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20180101
DTEND:20180101
RRULE:FREQ=MONTHLY;BYMONTHDAY=13,14,15;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1
SUMMARY:Pay (15th)
END:VEVENT
END:VCALENDAR

Pay Day iCal template

iCal file for a monthly recuring event (day) which will happen on Friday if it falls on the weekend, such as how fixed calendar days paydays work (sadly, won't work for holidays).

What to change:

  • DTSTART & DTEND: Start and End dates these recuring events should be added. For no end date, make them identical. Format: YYYYMMDD
DTSTART:20180101
DTEND:20180101
  • RRULE:BYMONTHDAY: The monthly day you want this to occur, preceded by the two previous days. (ex. For the 15, BYMONTHDAY=13,14,15)
RRULE:FREQ=MONTHLY;BYMONTHDAY=13,14,15;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1
  • SUMMARY: The name of the event as it will appear in the calendar
SUMMARY:Pay (15th)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment