0

I'm currently trying to create a date input box to disable a user from selecting any date that is not more than 5 days from the current date.

Is it possible to accomplish this using just something like this:

<label for="startDate">Start Date:</label>
    <input type="date" class="form-control" id="startDate"       placeholder="mm/dd/yyyy" /> 

Or is there an easier way - or a different way to approach this problem?

kzisme
  • 1
  • 4
  • read especially this part http://stackoverflow.com/a/17292150/3279496 – nelek Jul 15 '15 at 13:21
  • are you using bootstrap? – kamal0808 Jul 15 '15 at 13:22
  • @kamal0808 Yeah I'm using bootstrap - is there anything worth looking at there? – kzisme Jul 15 '15 at 13:23
  • yes, go to http://stackoverflow.com/questions/11933173/how-to-restrict-the-selectable-date-ranges-in-bootstrap-datepicker and check out the accepted answer – kamal0808 Jul 15 '15 at 13:24
  • @kamal0808 I only see mentions of start and end dates there, but I'm looking for something that would only allow something to be scheduled from todaysDate+5. – kzisme Jul 15 '15 at 13:26

0 Answers0