Datepicker Current [closed]

0

I have a question, I am currently using Bootstrap 4 and Jquery 3.3.1 the fact is that I need to add to several forms the power to choose dates but not doing typical <input type="date"/> since the format that gives me by default is not the one I want and I can not change it (unless there is some way to do it I have tried almost everything), someone would know how to make a datepicker dynamically or something I need something urgent.

Thank you very much in advance

    
asked by juank 15.10.2018 в 11:04
source

1 answer

1

introducir el código aquí If you want to give it another format you should have a plugin like Jquery UI datepicker, if you have the plugin with your CSS in your project it would be enough with <input type="text" class="datepicker"/> and a small javascript block to work, something like this :

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

If you look at the input it is text type, so you can take the Datepicker style, otherwise if it is of date most modern browsers will use a format to choose the date as it happened for sure with Chrome or Edge, do not worry about the entry to be text type since that is regulated with the js of the same plugin. I recommend you take a look at the Datepicker documentation in link greetings

    
answered by 15.10.2018 в 13:42