Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Date to String ?

Re: Date to String ?

From: Chris <cs123._no_spam__at_telstra.com>
Date: Mon, 08 Dec 2003 11:57:35 GMT
Message-ID: <PGZAb.44548$aT.12946@news-server.bigpond.net.au>

"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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US