Removing time from a Date object?

Dark-Hacker

New Member
I want to remove time from \[code\]Date\[/code\] object... this is my code...\[code\]DateFormat df;String date;df = new SimpleDateFormat("dd/MM/yyyy");d=eventList.get(0).getStartDate();///i am getting date through this method...date = df.format(d);//here i am converting date in dd/MM/yyyy format..\[/code\]But when I'm converting this date which is in \[code\]String\[/code\] format it is appending time also...I don't want time at all....What I want is simply 21/03/2012... That's it... Can any one help me out?
 
Back
Top