Jump to content


Photo

How to remove / in date


  • Please log in to reply
1 reply to this topic

#1 lilywong

lilywong
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 18 April 2006 - 08:06 AM

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

#2 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 18 April 2006 - 08:19 AM

$date = str_replace('/', '', $date);

should do the trick nicely

cheers
Mark
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users