jquery-timepicker icon indicating copy to clipboard operation
jquery-timepicker copied to clipboard

integrating datepicker with timepicker

Open kumel619 opened this issue 10 years ago • 3 comments

I have a form where user selects date from datepicker & then there is a timepicker after it.

Timepicker are in dropdown. I have this part ready.

Here is an example: If today’s date is : 21-sep-2016 & Current time is : 09:00. So when today’s date is choosen then i want timepicker to display hours after 4 hours. ie. 13:00 to 24:00 If date choosen was any other date then all time must be shown

So how can this be achieved?

This is my datepicker input code:

<input type="text" id="StartDate" class="form-control" style="cursor:pointer; background:white;"  placeholder="Start Date" name="StartDate"  title="StartDate" readonly required/>  

kumel619 avatar Sep 21 '16 17:09 kumel619

Use the option method. $('#someInput').timepicker('option', { minTime/maxTime options });

jonthornton avatar Sep 22 '16 02:09 jonthornton

If today’s date is : 21-sep-2016 & Current time is : 09:00. So when today’s date is choosen then i want timepicker to display hours after 4 hours. ie. 13:00 to 24:00 If date choosen was any other date then all time must be shown

kumel619 avatar Sep 22 '16 13:09 kumel619

i m using datepicker from bootstrap-datepicker.min.js

kumel619 avatar Sep 22 '16 13:09 kumel619