Jump to content

[SOLVED] Changing date format


timlondon

Recommended Posts

I'm sure there's a way to only select the information you want from your query, but you could just explode  the retrieved date by the space character and refer to the first item in the resulting array.

$date_array = explode(' ',$old_date)
$date_only = $date_array[0];

 

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.