ipraba / EPCalendarPicker

Colourful calendar for iOS written in Swift
MIT License
347 stars 72 forks source link

Can I set range for date selection #16

Open sandeee1928 opened 8 years ago

sandeee1928 commented 8 years ago

Is it possible to set a range for date to be select, like user can only select a date from today to next 15 day.

ipraba commented 8 years ago

@sandeee1928 You can set a startDate for the calendar where the user cannot select the dates before this date. But don't have the endDate now, will provide this sometime in future :)

sandeee1928 commented 8 years ago

Hi,

Thanks for reply,

The startDate is only working when multipleDateSelection is enable(true), but for single date selection I can select the date before the startDate.

Thanks, Sandeep

On Thu, Apr 21, 2016 at 12:15 AM, Praba notifications@github.com wrote:

@sandeee1928 https://github.com/sandeee1928 You can set a startDate for the calendar where the user cannot select the dates before this date. But don't have the endDate now, will provide this sometime in future :)

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ipraba/EPCalendarPicker/issues/16#issuecomment-212780095

YMonnier commented 8 years ago

This problem has been solved. (select the date before the startDate)

mohsinka commented 7 years ago

@YMonnier Is this selection done within this source code or you have a separate one for it?

YMonnier commented 7 years ago

@mohsinka Hey! Normally yes --> https://github.com/ipraba/EPCalendarPicker/pull/17

faiztech commented 6 years ago

Hey @ipraba, Any updates on having an end Date to the library? Would be really grateful to see that.

faiztech

raid5 commented 6 years ago

I'm interested in the endDate feature as well.

faiztech commented 6 years ago

@raid5

I actually implemented a Weekly Calendar Picker, You can achieve start date and end date by modifying the Week() class in the project. Here is a link to it: https://github.com/faiztech/WeekCalendarPicker