Getting a date out of oracle
| From: | Kallin Per | Date: | Tue, 23 Jan 2001 15:30:21 +0000 |
| Subject: | Getting a date out of oracle | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6105@lists.php.net to get a copy of this message | ||
Hi!
I'm pretty new to PHP and now I got a problem with Date datatype and oracle.
I can recive the date as a string with osiresult($stmt, "COLUMN_NAME") in
the oracle date format (eg. '23-JAN-01') but I wold like to recive the whole
date (eg. '2001-01-23 15:21:13'), that's the first problem.
The second problem is to convert this string into datatype date in php so I
can use the setlocale() function on it.
Someone out there who can help me with this?
Please answer to me directly at per.kallin@lm.se rather then to the list.
Yours,
Per Kallin, System developer
National Land Survey of Sweden
per.kallin@lm.se