On Mon, 18 Mar 2002, Ryan wrote:
> Hi, I'm trying to create an events page, where it shows the posted
> events.  I enter data using phpmyadmin.  Currently, the ouput is like
> this:
> 
> 2002-03-06
> 
> I'm having trouble with the formatting of the date.  I'm using the type
> date with the function now, so it shows the current date when I post an
> event.  Here is what I would like:
> 
> Wednesday, March 5th, 2002

I'm guessing you're fetching the date out of a MySQL table.

Use strtotime() to convert that into a timestamp, then use date() to 
convert that into the format you want. Both are well-documented in the 
manual.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to