Hi,
The function formatter.parse(finalDate), is creating a Date Object and when call the toString() function it will print the entire date details. So if you want to get the selected fiels, then you can use formatter.format(date).
But in your case it will be formater.format(formatter.parse(finalDate)) which will return the same value that of "finaldate"
)
Regards,
Rosh
SimpleDateFormat formatter = new SimpleDateFormat("EEE, MMM dd yyyy"); System.out.println(formatter.parse(finalDate).toString()); // Mon Dec 12 00:00:00 GMT+05:30 2005