Hi
Here is the requirement "how to convert a
string into date without changing its format"
When i tried to do this using SimpleDateFormat :
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
Date date = formatter.parse(str);
Output
String 26/08/1994 gets parsed as Fri Aug 26 00:00:00 IST 1994.
The format gets changed is it possible to preserve the format?
Thanks in advance