J
J
Jypsy2019-02-15 10:04:15
Java
Jypsy, 2019-02-15 10:04:15

How to display the correct date?

I am using bootstrap 4 and jsp.
There is such a thing as a datepicker.
5c66642361296868289578.png
When I enter 3/9/77 in the input field, bootstrap replaces the date with 03/09/77, and I need 03/09/0077. How to do it?
5c6664651aa1d624115538.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Prog, 2019-02-15
@damprog

What is the datepicker?
maybe he needs to set the format?

$( function() {
         $( "#datepicker" ).datepicker({
                   dateFormat: "dd/MM/yyyy"
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question