Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Date & Time Format
Could someone please tell me what I'm doing wrong with the following?
Here's the SQL:
SELECT
TO_CHAR(SYSDATE,'fmMonth ddth, YYYY, "at" HH:MI P.M.') TODAY
FROM
DUAL;
Here's the results:
TODAY
Notice the "9:8"? It should be "9:08". This only occurs when the the first digit of the minutes is a zero (0). For example, if I run the query 5 minutes later, it will correctly report the time as "9:13". I'm rather befuddled, because I really think I'm doing it right.
TIA.
--brad Skiles, dba
Purdue University
bwskiles_at_adpc.purdue.edu
Received on Thu Apr 03 1997 - 00:00:00 CST