I want the page to automatically set the current date in yyyy-mm-dd format in this bar, where a click expands the calendar with check data.
Now it looks like this: (https://i.sstatic.net/vd0mPro7.png) and I can only manually select the date on the calendar. But I want to set date format in yyyy-mm-dd and I don’t know how change it.
2
Answers
In HTML it contains the ID datePicker in the input feild and the JS in the script runs when the page is fully loaded and the current format of the date will be yyy-mm-dd
You can just add this small script here