Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

technogenes's avatar

date and time picker

is there any jquery/bootstrap date and time picker and how i can use it? currently i am using date calendar only

<div class='input-group' >
                                {!! Form::text('fromDate', $plan->fromDate, ["placeholder" => "2014-09-09 12:00:00", 'id' => 'calendar1']) !!}
                            </div>

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>

<script>
     $(function() {
         $( "#calendar1" ).datepicker();
         $( "#calendar2" ).datepicker();
       });
     </script>



0 likes
7 replies
technogenes's avatar

Thanks for your answer, I have tried the way. It shows the icon next to text fields but not clickable, shows nothing

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/locales.js"></script>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.css"></script>

<div class="col-md-2">
                            <div class='input-group' id='calendar1'>
                                {!! Form::text('fromDate', $plan->fromDate, ["placeholder" => "2014-09-09 12:00:00"]) !!}
                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            </div>
                        </div>


<script type="text/javascript">
            $(function () {
                $('#calendar1').datetimepicker();
                $('#calendar2').datetimepicker();
            });
        </script>


vogtdominik's avatar

@mstnorris Your second link, schedular, made me think about a plugin I would really benefit from. I was thinking about a scheduling tool, like you would schedule a date in microsoft outlook, but web based. Do you or anyone else know such a plugin?

Please or to participate in this conversation.