Posted by Jonathan Crawford on 11/04/05 14:35
Hi
I am niew to pho and am having trouble with dates.
I can format a date ok
so $today=date('d M Y' )
gives me 2 Nov 2005
$dateval is a mysql date
yyyy-mm-dd hh:nn:sss (2005-10-26 13:32:09)
$today=date('d M Y' ,$dateval)
gives me something like 1 july 1970
I am not sure how to tell the php that the date is a date.
It is driving me nuts, and the only particulary
obscure thing I have encountered so far.
i would be grateful for some advice
thanks
jonathan
===============
Jonathan Crawford
jc@tgsi.net
===============
Navigation:
[Reply to this message]
|