Change the Order of the Date in a Form
What does this code do?
This code snippet will allow you to change the date to Day, Month, Year in a form in Squarespace.
Code Snippet
Copy and paste the following code at the top of Settings > Advanced > Code Injection > Footer.
<!-- Order of Day and Month in Form --> <script> (function () { var day = document.querySelector(".day"); var date = document.querySelector(".date"); date.insertBefore(day, date.childNodes[0]); })(); </script>
How To Use It
Copy and paste the code as indicated above.