You use the formatdatetime() function to specify the date in long or short form. However, the long or short form displayed depends on the set up of your webserver.
To display the date in short form, use the following:
formatdatetime(mydate, 2)
If this does not display the date in the desired format then you need to change the short date format on your webserver. If you do not have control of the webserver, then a simple alternative is to do the following:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.