You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to call dateFor(.startOfWeek) and get Monday's date instead of Sunday's. Same thing with .endOfWeek - Sunday instead of Saturday.
Is there any way to configure this library this way or is it completely dependent on phone settings or something?
The text was updated successfully, but these errors were encountered:
This function now uses a calendar's start of week to calculate the start of the week. You can pass it a custom calendar that has this setting or rely on the current user's calendar setting.
var calendar = Calendar(identifier: .gregorian) calendar = 2 // sets the week to start on the second day.. Monday now.dateFor(.startOfWeek, calendar: calendar)
I'd like to call dateFor(.startOfWeek) and get Monday's date instead of Sunday's. Same thing with .endOfWeek - Sunday instead of Saturday.
Is there any way to configure this library this way or is it completely dependent on phone settings or something?
The text was updated successfully, but these errors were encountered: