Jump to content

Archived

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

lilywong

How to remove / in date

Recommended Posts

i have a date, 11/11/2006,
i want it to be 11112006,
anyone know how to remove the "/", thanks.

Share this post


Link to post
Share on other sites
[code]
$date = str_replace('/', '', $date);
[/code]

should do the trick nicely

cheers
Mark

Share this post


Link to post
Share on other sites

×

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.