Answer the question
In order to leave comments, you need to log in
What is the correct way to resize datetime input field for bootstrap-datetimepicker?
Hello.
I decided to transfer the dashboard with a date and time range selection to bootstrap-datetimepicker.
https://github.com/Eonasdan/bootstrap-datetimepicker
$(function () {
$("#datetime_input").datetimepicker({
locale: 'ru'
});
$("#datetime_output").datetimepicker({
locale: 'ru'
});
});
<div class="row">
<span>C</span>
<div class='col-xs-3'>
<div class="form-group">
<div class='input-group date' id='datetime_input'>
<input id="INPUT_DATETIME" type='text' class="form-control" value="${INPUT_DATETIME}"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<span>По</span>
<div class='col-sm-3'>
<div class="form-group">
<div class='input-group date' id='datetime_output'>
<input id="OUTPUT_DATETIME" type='text' class="form-control" value="${OUTPUT_DATETIME}"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question