I want to convert String into Date in Java.
I have written following code for that:

```
SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss.SSSSSS");       

Date date = dateformat.parse("2015-07-16 23:59:59.0");

dateformat.format(date);

```

After parsing I am getting following value for date : `Fri Jan 16 23:59:59 IST 2015`

I have tried many examples but didn't get proper solution.

Thanks in advance.