Fw: libusb on FC2
H. Ross Brodbeck
rbrodbeck at gpworldwide.com
Wed Oct 27 09:47:18 EDT 2004
something like this would probably work:
<? print Date("l, F jS, Y", $Event_Date_Start); ?>
it should give you something like: "Monday, October 2nd, 2004"
if you don't want the 'nd' part, take out the capital S. here's the
syntax info for the php date function:
http://us2.php.net/date
the above code is untested, but I am pretty sure it will work. the only
caveat is this: you need an integer representation of the time. you may
need to use something like strtotime() or something in mySQL. check out
the above link for info on that.
adelphia wrote:
> Thanks - been to the tutorials, maybe I'm missing something...
>
> I have a mySql field, in DATE format, stored as 2004-10-02
>
> $Event_Date_Start=mysql_result($result,$i,"Event_Date_Start");
>
> I need to format $Event_Date_Start to 'Monday, October 2, 2004' or at
> least 10/2/2004 ...
>
> Just not seeing the proper syntax for Date() ..
>
> ANy thoughts are appreciated.
>
> http://www.afourthdimension.com/db.php
>
>
> Scott
>
--
H. Ross Brodbeck
------------------------
Staff Engineer
General Physics Corp
rbrodbeck at gpworldwide.com
716.691.1212 x68201
More information about the nflug
mailing list