dubrox / Multiple-Dates-Picker-for-jQuery-UI

MDP is a little plugin that enables jQuery UI calendar to manage multiple dates.
https://dubrox.github.io/Multiple-Dates-Picker-for-jQuery-UI
272 stars 156 forks source link

Select specific days within range in MultiDatePicker #138

Open Shabbirl opened 9 years ago

Shabbirl commented 9 years ago

I'm using this MultiDatePicker to allow users on my project to select multiple days on the calendar.

My problem is I want to allow them to select specific week days and then select a date range and by doing this select those days within the range.

Example: Select all (Monday) and (Wednesday) from (September 10 2014) to (August 10 2014) and when the user clicks a button or something, all Mondays and Wednesday within September 10 and August 10 get automatically selected in the full-year calendar's days.

Any ideas on how can I achieve this?

Rouche commented 9 years ago

I understand you use multidate picker only for visuals then. Your case is very specific.

You could put 2 normal date pickers outside (start / end) with a button.

Button click() would then compute the dates and call addDate() on the multidate object that would just rerender.

On Wed, Jun 17, 2015 at 7:35 AM, Shabbirl notifications@github.com wrote:

I'm using this MultiDatePicker to allow users on my project to select multiple days on the calendar.

My problem is I want to allow them to select specific week days and then select a date range and by doing this select those days within the range.

Example: Select all (Monday) and (Wednesday) from (September 10 2014) to (August 10 2014) and when the user clicks a button or something, all Mondays and Wednesday within September 10 and August 10 get automatically selected in the full-year calendar's days.

Any ideas on how can I achieve this?

— Reply to this email directly or view it on GitHub https://github.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/issues/138 .