1. All the dates before current date must be disabled (when user clicks on any date before today a popup appers in which message is displayed that you are not allowed to selected these dates or something like that)
2. date format must be dd-mm-yy
4. declare an array named data when user select a date or range of dates all those must be store in data array like if he select 15feb then 20feb then in this case all dates from 15-20feb must be store in data array (keep in mind the format of dates) 5. declare an array named limit in which put some value like 4 (this is basically the limit put by the owner which we will fetch from database later on but database tasks is not yours) var limit = new Array("4"); so when user select the range of dates/date check the limit array if selected range is greater than the limit in array then thats fine store that range in data array else display a dialog box with an error message. Thats all what you need to do must be completed within today,tonight is your deadline.
Rate up to 3 usd.