Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.startWeek and .endWeek properties for Date and DateInRegion #187

Closed
bb-git opened this issue Apr 4, 2016 · 2 comments
Closed

.startWeek and .endWeek properties for Date and DateInRegion #187

bb-git opened this issue Apr 4, 2016 · 2 comments
Assignees
Milestone

Comments

@bb-git
Copy link

bb-git commented Apr 4, 2016

The function of the documentation is not returning an NSDate, as it should.

@Hout
Copy link
Contributor

Hout commented Apr 5, 2016

Stale docs. Needs an update.

Workaround: use startOf function.

let date = NSDate(blahblah) // initialise as desired
let firstDayOfWeek = date.startOf(.WeekOfYear)

Please let me know if this works for you.

@Hout Hout self-assigned this Apr 23, 2016
@malcommac malcommac changed the title firstDayOfWeek() not returning a NSDate Adding firstDayOfWeek/lastDayOfWeek property both for DateInRegion and Date Sep 30, 2016
@malcommac malcommac added this to the 4.1.0 milestone Sep 30, 2016
@malcommac malcommac assigned malcommac and unassigned Hout Sep 30, 2016
@malcommac
Copy link
Owner

malcommac commented Nov 30, 2016

Added .startWeek (replacefirstDayOfWeek) and .endWeek (replace lastDayOfWeek) properties both for Date and DateInRegion.
(a38152e)

@malcommac malcommac changed the title Adding firstDayOfWeek/lastDayOfWeek property both for DateInRegion and Date .startWeek and .endWeek properties for Date and DateInRegion Nov 30, 2016
malcommac added a commit that referenced this issue Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants