note 23299 added to function.odbc-result
| From: | murat at nospam dot robcol dot k12 dot tr | Date: | Mon, 15 Jul 2002 06:44:24 +0000 |
| Subject: | note 23299 added to function.odbc-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33066@lists.php.net to get a copy of this message | ||
When trying to get a date/time field from an Access database, odbc_result returns the date as text
(e.g. 1998-07-11 21:12:23). You may use strtotime function to convert this into a format which can
be used with PHP.
e.g.
echo "The date is "
.date("r",strtotime(odbc_result($myquery,"mydate")));
--
http://www.php.net/manual/en/function.odbc-result.php
http://master.php.net/manage/user-notes.php?action=edit+23299
http://master.php.net/manage/user-notes.php?action=delete+23299
http://master.php.net/manage/user-notes.php?action=reject+23299