Date format not working
-
Hi there
Thanks for the plugin!I’m trying to format date as 2012-02-12 (this is how it is inside the database)
As you linked in your help page, it should be yy-mm-dd
https://api.jqueryui.com/datepicker/#utility-formatDateBut then I put this format yy-mm-dd (or even “yy-mm-dd”, tried with both options), in DateFormat field inside the plugin setting
And then created a form field using GET with this code
<form method="GET" action="/that-page/"> <div> <input type="text" class="datepicker" name="thedate"> </div> <div> <button type="submit" name="enviar" value="send">send</button> </div> </form>
then it bring me this in the URL
?thedate=02%2F12%2F2021
How can I turn this to
?thedate=2012%2D02%D12
Thanks a lot
Lucas
- The topic ‘Date format not working’ is closed to new replies.