I have a variable that already has a date stored in it as 2000-01-01 00:00:00
I just want it to display as 01-01-2000, with no time, which is the European way of doing things.
The PHP manual only seems to have references to using the DATE() function, and others talk about using MySQL's DATE_FORMAT function.
As far as I can see, the date() function applies only to the current or system date.
My variable it is not part of a database so SQL should not come into it.
However, nowhere can I find an example to do what I want.
It is possible to do it by changing it into a string and manipulate the bits, but there must be a simpler way.
Can anyone throw me a life line with a suitable bit of code?
Howard