in my datebase is the date 2004-11-10. I need to take that date and convert it to November 10, 2004. I looked on PHP.net and couldnt find anything. Can someone help?
Thanks
Mike
the strtotime function combined with the date function is your best bet:
echo date("F j, Y", strtotime($date_from_db));
http://us2.php.net/manual/en/function.strtotime.php
http://us2.php.net/manual/en/function.date.php
Works like a charm! I didnt realize how easy that was! Sometimes the scripts on php.net get a bit overwhelming..Thanks!!
Mike:p
if you are using mySQL then you should look at the DATE_FORMAT function.