date - Bootstrap DateTimePicker Start Time -


i'm using 2 datetimepickers http://tarruda.github.io/bootstrap-datetimepicker/ in code: 1 choosing date (picktime disabled) , other time (pickdate disabled).

i've managed set startdate date, how can set starttime , endtime, in such way time before starttime disabled?

<script type="text/javascript">   $(function() {     $('#datetimepicker4').datetimepicker({       picktime: false,       startdate: new date(2013,9,8)     });   }); </script>  <script type="text/javascript">   $(function() {     $('#datetimepicker3').datetimepicker({       pickdate: false,       starttime: ???     });   }); </script> 

this question old thought might one.

js

$('.time').datetimepicker({       format: 'lt'   }).on("dp.change",function(e){       var date = e.date;//e.date moment object       var target = $(e.target).attr('name');       console.log(date.format("hh:mm:ss"))//get time using format   }) 

e.date moment object time can derived using format("hh:mm:ss")


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -