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

inclusive date: when I enter in dates spanning Sunday to Sunday, I get two weeks back #4

Open
jyw2116 opened this issue Nov 14, 2013 · 0 comments

Comments

@jyw2116
Copy link

jyw2116 commented Nov 14, 2013

SeasonsOfLove.split_dates_into_ranges(Date.parse("November 3, 2013"), Date.parse("November 10, 2013"), :format => 'weeks', :beginning_of_week => :sunday)

# => [{:start_date=>Sun, 03 Nov 2013, :end_date=>Sat, 09 Nov 2013}, {:start_date=>Sun, 10 Nov 2013, :end_date=>Sun, 10 Nov 2013}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant