Datepicker date format
How do I change the format of the date displayed in the frontend for the datepicker from M/DD/YYYY (e.g 10/25/2022) to DD/M/YYYY(e.g 25/10/2022).
I have tried setting this in my own custom js by specifying the format at DD/M/YYYY (and also tried DD/MM/YYYY) and by setting the locale in my js. However, this doesn't works.
What do I need to change in the global plugins/js bundle to change the format as detailed above?
Then recompile your assets folder with Gulp or Webpack.
Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment you will only need the compile assets, no need to install the build tools dependencies there.
No, I am referring to the date picker here as mentioned in the ticket title: https://preview.keenthemes.com/html/metronic/docs/forms/daterangepicker
The official documentation shows how to set the date format locally (using locale & format) which I have followed but something in your plugins bundle is overriding this. We just don't know what.
Can you please paste your code here inside the PRE tag to highlight a code? By right, if you initialized a new instance of Daterangepicker with a custom format it should work as expected. We do not have any global format settings for the Daterangepicker.
Are you able to compile the assets from the src folder using gulp or webpack?
To customize the JS you will need to use the build tools.