date formation problems

Поиск
Список
Период
Сортировка
От Ray Messier
Тема date formation problems
Дата
Msg-id NCBBJEKDMLKBHHEMCENNKEBACFAA.messier@nichewareinc.com
обсуждение исходный текст
Список pgsql-sql

i have a table  ....

create table foo ( dfield datetime );

when i do an insert the date always comes out as 1969! any ideas why?

$cSQL = "INSERT INTO foo (dfield) VALUES ('" . date("m/d/Y h:m
a","12/09/2001 02:15 am") . "')";
pg_exec($oConn, $cSQL);

Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Ray Messier"
Дата:
Сообщение:
Следующее
От: Charles Mott
Дата:
Сообщение: Outer Joins