1
I am trying to implement Bootstrap Datetimepicker in my project that is with version 4.3.1 of Bootstrap.
The problem is I don’t know how to do it. I downloaded from this site:
https://www.jqueryscript.net/time-clock/Date-Time-Picker-Bootstrap-4.html
and he brought me this file structure:
I tried to include them in my project so:
<script type="text/javascript" src="~/lib/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
<script type="text/javascript" src="~/lib/bootstrap/Date-Time-Picker-Bootstrap-4/build/js/bootstrap-datetimepicker.min.js">
and put the input like this:
<input type="text" class="form-control" id="data1">
while in jQuery I put like this:
$("#data1").datetimepicker();
And nothing happened. Just an error on the console, saying it did not recognize the command .datetimepicker()
. Somebody give me a hand please?
Error:
Uncaught Typeerror: $(...). datetimepicker is not a Function at Htmldocument.
It also shows me an error about the moment.js
, how I can manually download it to implement it?
EDIT:
I managed to fix the error by putting Moment this way:
<script type="text/javascript" src="https://momentjs.com/downloads/moment.js"></script>
However, I cannot use it through this link. As I lower it manually to add the path to my project?
EDIT1: How I change the language to Portuguese?
Reap the days and months then in English. How I change them to Portuguese?
Translation by browser ^
About the date I saw this hj https://github.com/you-dont-need/You-Dont-Need-Momentjs sometimes it interests you
– hugocsl