This is the best easy to impliment date time picker i found so far.
https://github.com/Eonasdan/bootstrap-datetimepicker
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>
@technogens Follow this steps:
- Download all the files from links below (just right click and save)
http://code.jquery.com/jquery.min.js
https://raw.githubusercontent.com/moment/moment/develop/min/moment-with-locales.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
https://raw.githubusercontent.com/Eonasdan/bootstrap-datetimepicker/master/build/js/bootstrap-datetimepicker.min.js
And css links:
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css
https://raw.githubusercontent.com/Eonasdan/bootstrap-datetimepicker/master/build/css/bootstrap-datetimepicker.min.css
- Now include them in your html file in same order. (I would prefer css in head section and js at the bottom of the page i.,e just before closing body tag)
Please or to participate in this conversation.