kyrnel
12-22-2003, 10:39 PM
I wrote a simple PHP script to display upcoming events on the ForumHome page but when I try to format the date, it always shows Dec 31, 1969.
$up_eventdate = vbdate("M-d",$event[eventdate]);
$event[eventdate] returns the appropriate value in the format 'Y-m-d'.
I just want to change that to 'M-d' format.
Is this not working because the array is returning a string value for the date?
I thought vbdate() would convert a string to a date if it was a valid date format.
Anyone have any ideas here?
$up_eventdate = vbdate("M-d",$event[eventdate]);
$event[eventdate] returns the appropriate value in the format 'Y-m-d'.
I just want to change that to 'M-d' format.
Is this not working because the array is returning a string value for the date?
I thought vbdate() would convert a string to a date if it was a valid date format.
Anyone have any ideas here?