"Ryan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:
>
> --------------------------------------------------------
> Conference in New York
> 2002-03-06
>
> There is going to be a conference in New York next week.
> --------------------------------------------------------
>
> 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:
>
> --------------------------------------------------------
> Conference in New York
> Wednesday, March 5th, 2002
>
> There is going to be a conference in New York next week.
> --------------------------------------------------------
If you are using the mktime() to make a UNIX timestamp you could do
something like this:
<?
$conftime = mktime($hour, $minute, $seconds, $month, $day, $year);
echo date("l, F jS, Y", $conftime);
?>
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
"Don't work for recognition, but always do work worthy of recognition."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php