Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: time conversion
Try to_date(to_char(sysdate,'DD-MON-YYYY')||
to_char(x),'DD-MON-YYYYHH24' )
Jinshu
Shawn Bernard wrote in message <36CB2110.6A213069_at_mci.com>...
>I am coding in PL/SQL and i need to take a number (ranging from 0 to 23)
>and convert it to the appropriate hour. For example: 4 ==> 4:00 AM (or
>4 AM), 14 ==> 2:00 PM
>
>I can't seem to get the TO_DATE to work. Does anyone have a solution?
>
>Thanks,
>
>Shawn
>
Received on Wed Feb 17 1999 - 14:43:20 CST