Skip to contents

This function takes a start date, e.g. of a course, and advances it by a number of weeks. This function is used in the syllabus template.

Usage

advdate(startdate, week)

Arguments

startdate

The first date in the series (e.g. first day of class).

week

The number of weeks into the series. Week 1 is the first date in the series.

Value

A vector of dates in the format "dd mmm" in parentheses.

Examples

advdate("2021-06-23", 1:3)
#> [1] "(23 Jun)" "(30 Jun)" "(7 Jul)"