Description Usage Arguments Details
Given a reference date object and a weekday as a string or numeric index, finds the closest instance of that weekday that happened before the reference date.
1 | weekday_find_closest(weekday, reference = NULL)
|
weekday |
a day of the week, as a string or an index. These are locale-specific. Use weekday_labels to figure out the valid labels for your system. |
reference |
a reference date from where to look for the required weekday. |
For instance, if the reference date is a Friday and the weekday is "Saturday", the function will return last Saturday.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.