i want to parse a string into date having the below code, but output contains time also.
I don't want time in my output, I just want date.
public static void main(String args[]){
String givendate="2013-09-09";
Date date=(new SimpleDateFormat("yyyy-MM-dd").parse(givendate));
System.out.println(date);
}
Output of the program-: Mon Sep 09 00:00:00 IST 2013