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

Current Month Issue #355

Open
veer9002 opened this issue Oct 5, 2017 · 2 comments
Open

Current Month Issue #355

veer9002 opened this issue Oct 5, 2017 · 2 comments

Comments

@veer9002
Copy link

veer9002 commented Oct 5, 2017

Hello,
I am using JTCalendar and its UI is fully customisable and its very good library. When I use current month as starting month then previous months were not available, only another next to it months are available only. And when I used start date: "1-1-2017" and end date: "31-12-2017" than calendar starts with "1-1-2017" and I want to start from current month and with previous months available. And on didSelect method, selected method is always wrong

@MrJai
Copy link

MrJai commented Oct 20, 2017

Hi @veer9002

_todayDate = [NSDate date];

// Min date will be 12 month before today
_minDate = [_calendarManager.dateHelper addToDate:_todayDate months:-12];
    
// Max date will be 12 month after today
_maxDate = [_calendarManager.dateHelper addToDate:_todayDate months:12];

Please see the above lines as reference, I am using it to set the range to two years (12 months past and 12 months in future, and current month is the selected point. You can do it in viewDidLoad.

@veer9002
Copy link
Author

veer9002 commented Nov 2, 2017

Hello @MrJai
I am using swift 3.2 MrJai. But it will help me although. Thank you so much.

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

2 participants