The date picker format stopped working after I moved the code from the PHTML file to a separate JavaScript file
I was implementing a date picker on one of my pages, and it was working fine. However, after moving my JavaScript files from the PHTML file to a separate JS file, it stopped working and is now picking the wrong format. Can you help me fix it?