KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following scenario : SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); System.out.println(dateFormat.parse("31/05/2011")); gives an output Tue May 31 00:00:00 SGT 2011 but I want the output to be 31/05/2011 I need to use parse here because the dates need to be sorted as Dates and not as String. Any ideas ??
Tags (comma-separated)
Save Edits
Cancel