IanNav
Programmer
- Feb 26, 2001
- 79
Hi,
I'm new to PHP and need some help on a simple problem.
I have a variable $data[date].
I would like to the date to display in "dd/mm/yyyy" format
I am a vb programmer, and would do it as below in vb.
mydate = "2005/11/30"
tmpdate = format(mydate, "DD/MM/YYYY")
result : tmpdate = "30/11/2005"
Please can some post some example code for me.
thanks
Ian
ps, i have looked on php.net and the only examples are how to format the #now# date, i want to format it from a stored date.
I'm new to PHP and need some help on a simple problem.
I have a variable $data[date].
I would like to the date to display in "dd/mm/yyyy" format
I am a vb programmer, and would do it as below in vb.
mydate = "2005/11/30"
tmpdate = format(mydate, "DD/MM/YYYY")
result : tmpdate = "30/11/2005"
Please can some post some example code for me.
thanks
Ian
ps, i have looked on php.net and the only examples are how to format the #now# date, i want to format it from a stored date.