2
Well I don’t know how your modal is, but you can do so.
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<div id="datetimepicker1" class="input-append date">
<input data-format="dd/MM/yyyy hh:mm:ss" type="text"></input>
<span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
And put at the end of the pagin, before closing the tag body:
<script type="text/javascript">
$(function () {
$('#datetimepicker1').datetimepicker({
language: 'pt-BR'
});
});
</script>
You tested it and it worked?
– Shider
yes, see how https://codepen.io/Sinetheta/pen/Ftjwiworks
– Leandro Silva Campos
'Cause I see but then I don’t know what I’m doing wrong
– Shider
you are using the datepicker itself for the right bootstrap?
– Leandro Silva Campos
Probably the problem is my date Picker
– Shider
What is the Picker date I should use so you can tell me?
– Shider
@Shider try using this version here: https://github.com/uxsolutions/bootstrap-datepicker
– Leandro Silva Campos