Обсуждение: RE: [GENERAL] Re: [HACKERS] custom types and optimization

Поиск
Список
Период
Сортировка

RE: [GENERAL] Re: [HACKERS] custom types and optimization

От
"Jackson, DeJuan"
Дата:
> The only problem I haven't been able to fix to date is calling "Dates"
> from a database and displaying them like "Sunday May 31, 1998" instead
> "05-31-1998"
>
> Currently using PHP2.x not PHP3 yet...
>
> Kevin
>
try:
$mydate = '05-31-1998';
$mon = strtok($mydate, '-');
$day = strtok('-');
$year = strtok('-');
echo date('l F d, Y', mktime(0, 0, 0, $mon, $day, $year));



> --------------------------------------------------------------------
> Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
> VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
> kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
> --------------------------------------------------------------------
>