Hi!
Can you add _toStartOfWeek_ function?
Behavior of this function is similar to toStartOfMonth,
but I want that function returns truncated to monday's date.
example :
toStartOfWeek(2016-06-28, 0) -> 2016-06-26
toStartOfWeek(2016-06-23, 1) -> 2016-06-20
here is first argument is a date
second argument is a first day week (sunday, monday ...)
toMonday exists
BTW it is intentionally named toMonday, not toStartOfWeek, because there are different rules about at what day week starts.
Most helpful comment
BTW it is intentionally named
toMonday, nottoStartOfWeek, because there are different rules about at what day week starts.