I have getting date object as Mon Jan 24 00:00:00 IST 2000
i have have converted it in the form yyyy/MM/dd using SimpleDateFormat class. But i am getting the converted date as
String form.
But i want it in date form itself.
can anybody suggest me how to do this.
. Date d=new Date();
SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd");
String _format=sdf.format(d);
System.out.println("the date is:"+_format);
Thu Mar 22 20:51:35 IST 2007
the date is:2007/03/22 --> I want this date as java.util.Date but it is returning in string format.