|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Date Formatting
Hi,
In a table on my database I have a field 'date'. This is an automatic entry and records when an entry is added to the database. Using the avriable $date I can then display on the web page "Item added on $date". However currently it is in the format 2002-12-18 and I would like it in the format 18-12-2002 (dd/mm/yyyy) Currently the code is looking like this.. while($r=mysql_fetch_array($result)) -------------------------------------- $date=$r["date"]; How can I change it to get the correct format. I know this is probably a really dumb question, but I'm just getting to grips with php and really appreciate any replies. |
|
#2
|
|||
|
|||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
Thank you.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Date Formatting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|