[PHP] Re: Problems with date function

2002-02-01 Thread Mike Eheler
Y",strtotime(odbc_result($resultado,'fechaasignacion')));?> date accepts unix timestamps, not strings, so you have to convert that string to a unix time with strtotime. Mike Jorge Arechiga wrote: > Hi everybody > > I hope someone can help me in an issue on where i've been stuck for a

[PHP] Re: Problems with date function

2002-02-01 Thread Lerp
Hi there :) Check this out. It grabs the date from your table, and uses the mktime and date functions to format the date properly :) //format the gamedate for display below $month = substr($gamedate, 5, 2); //print $month . ""; $day = substr($gamedate, 8, 2); //print $day . ""; $year = substr($ga