datetime in MSSQL7

From: Date: Tue, 23 Oct 2001 01:14:29 +0000
Subject: datetime in MSSQL7
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-13617@lists.php.net to get a copy of this message
Hello! How can I force PHP to fetch datetime field i 'yyyymmdd hh:mm:ss' WITHOUT using MSSQL query like *SELECT convert(varchar,dtfield,20) as 'dtfield'* and so on? I have a few tables on MSSQL with the different structures and some of fields are datetime. I have to use CLASS in php with querys inside the code that are independent on order of fields. setlocale? but what? regards Konrad

« previous php.db (#13617) next »