I have done following code:
String str = \"2013-01-17 11:26\"; DateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd hh:MM\"); Date date = dateFormat.parse(s
Just Using of DateFormat Class:
ateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm");