Ohh, saya kira component seperti datepicker.Ya sudah, mau gak mau kamu harus
ubah nilai string tersebut sehingga memiliki format MM/dd/yyyy.
Atau kamu pake 3 combo box saja, nanti tinggal construct date daru 3 nilai
tersebut.
Atau cari component date picker aja.


On Sun, Apr 27, 2008 at 11:22 PM, ab hadi <[EMAIL PROTECTED]> wrote:

>   dateSpinner = new javax.swing.JSpinner();
>
> ----- Original Message ----
> From: uud ashr <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, April 28, 2008 0:08:04
> Subject: Re: [JUG-Indonesia] bagaimana nak convert String to Date
>
>  dateSpinner itu component apa?
>
> On Sun, Apr 27, 2008 at 9:23 PM, ab hadi <youratthesun@ yahoo.com<[EMAIL 
> PROTECTED]>>
> wrote:
>
> >    ini coding saya :
> >
> >
> >              SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
> >
> >             try {
> >                 Date date = (Date) sdf.parse(dateSpinn er.getValue(
> > ).toString( ));
> >
> >                 System.out.println("datevalue: "+date);
> >
> >             } catch (ParseException ex) {
> >                 ex.printStackTrace( );
> >             }
> >
> > bila  RunProject error:
> >
> > java.text.ParseExce ption: Unparseable date: "Sun Apr 27 22:12:56 SGT
> > 2008"
> >
> >
> >
> >  It would be great if somebody could help me with this!!
> >
> > help me pls...! ergen
> >
> >
> >
> > Send instant messages to your online friends http://uk.messenger
> > .yahoo.com <http://uk.messenger.yahoo.com/>
> >
> >
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
>  
>

Kirim email ke