#19331 [Opn->Bgs]: Datetime formatting problem

From: Date: Tue, 10 Sep 2002 11:25:26 +0000
Subject: #19331 [Opn->Bgs]: Datetime formatting problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18915@lists.php.net to get a copy of this message
ID: 19331 Updated by: cynic@php.net Reported By: abay@siyahkale.com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: WIN2K PHP Version: 4.2.0 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-09-10 06:21:24] abay@siyahkale.com I have PHP 4.2.0 installed on my WIN2K (Turkish Edition) server and I use SQL 7.0 Enterprise Edition. When I get data by query and try to format data as: $result=mssql_query("select * from table") while($row=mssql_fetch_object($result)) { $Mydate=date("d.m.Y",$row->Date_field); .... .... } unexpected error occurs because datafield's value comes as 13 Oca 2001 00:0 ( Oca means Januar in Turkish ) but I need it as 13/01/2002 for global application. I know why, but I can't find why? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19331&edit=1

« previous php.bugs (#18915) next »