Returns the date of the first day of the week for the given date. If no date is provided, it uses today's date. Optionally accepts a -starton parameter to indicate whether the week should start on Sunday (1) or Monday (2).
Parameters
-date
date, optional
The starting date from which to calculate. Defaults to today.
-starton
integer, optional
An integer representing Sunday (1) or Monday (2), for the day on which the week should start.
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
Update
The tag now passes the source date by copy instead of reference so as not to inadvertently change the source date!