#19331 [NEW]: Datetime formatting problem
| From: | abay at siyahkale dot com | Date: | Tue, 10 Sep 2002 11:21:24 +0000 |
| Subject: | #19331 [NEW]: Datetime formatting problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18914@lists.php.net to get a copy of this message | ||
From: abay@siyahkale.com
Operating system: WIN2K
PHP version: 4.2.0
PHP Bug Type: Date/time related
Bug description: Datetime formatting problem
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 bug report at http://bugs.php.net/?id=19331&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19331&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19331&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19331&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19331&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19331&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19331&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19331&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19331&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19331&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19331&r=globals