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

Unable to add 42 days on the monthly calendar #199

Closed
sandeepsparity opened this issue May 3, 2017 · 4 comments
Closed

Unable to add 42 days on the monthly calendar #199

sandeepsparity opened this issue May 3, 2017 · 4 comments

Comments

@sandeepsparity
Copy link

I'm not able to display 42 days on the monthly calendar . Is there any way to add 42 days on the monthly calendar ?

I need to see 6 weeks on the monthly calendar .

Appreciate if some help me to fix this issue and need to get start and end date of the month

Regards,
Sann

Bug description / Feature request:

For bugs only, a link to minimally working plunker that reproduces the issue (you can fork a starter from any of the demos)

Versions

Angular:

Calendar library:

Browser name and version:

@mattlewis92
Copy link
Owner

I think this should be possible with a few small changes, give me a couple days to think on the API + find the time to implement it 😄

For getting the start and end of the month you can use date-fns startOfMonth and endOfMonth.

@sandeepsparity
Copy link
Author

I need to get the start date and end date for the calendar which is displayed on the screen. If it's for the specific month then we will get by using startOfMonth and endOfMonth but, In my scenario, the past month days and current month days are displaying.I need to get past month start date and current month end date.

@mattlewis92
Copy link
Owner

Ah ok, in which case wrap the start/end of month calls with startOfWeek and endOfWeek

@mattlewis92
Copy link
Owner

I've just cut 0.15.0 which now allows you to get this behaviour, there is a demo of how to use it here: https://mattlewis92.github.io/angular-calendar/#/extra-month-view-weeks

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

2 participants