Jump to content

[SOLVED] How to display a different date format


fluvly

Recommended Posts

I have this date and time inside a variable, taken from a database:

 

$datetime = "2009-09-17 12:20:08";

 

I would like to extract just the date (without the time) and show it as "17/09/2009" instead. Is there a way to do this without the "explode" function?

 

Thanks to anyone willing to help!

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.