Jump to content

PHP/MySQL date display format


gnawz

Recommended Posts

Hi guys?

 

Help me on how I can change the format of my date displayed form a MySQL database

If for instance I have a variable for my date like

echo $dateregistered;

 

ie

 

Default is:

 

YY-MM-DD eg 2009-05-23

 

How do I make it display like this DD-MM-YY or DD-MM.YYY

 

eg 23-05-2009

 

0r

 

23-05-09

 

Kindly help

Link to comment
https://forums.phpfreaks.com/topic/166957-phpmysql-date-display-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.