Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Date to String ?
"mhk" <cccssss_at_dddsssl.com> wrote in message
news:3FD403D0.8080100_at_dddsssl.com...
> Hi ,
>
> I want to convert date in to String , i am using following code but
> getting error.
>
> ***************************************
> import java.util.*;
> public class date_finder
> {
> public date_finder() {}
>
> public String get_date ()
> {
>
> Date dat = new Date();
> String today = String.valueof(dat);
> return (today);
>
> }
>
> }
>
> **************************************
>
> Please guide me in correcting this code.
>
> Thanks alot for the help.
>
> Sincerely
>
> Jeff
>
>
>
select to_char(sysdate,'DD/MM/YYYY HH24:MI')
from dual;
Received on Mon Dec 08 2003 - 05:57:35 CST
![]() |
![]() |