I hava one string "2013-1-31 08:25 PM"
i want to split from space and :
i able to split after space it become "2013-1-31 08" and "25 PM"
now i want the "2013-1-31" and "08"
i dont not able to get the value in the 08 in the new string but i get the "2013-1-31"
String view_datee = view_date.getText().toString();
String[] separated = view_datee.split(":");
String first =separated[0];
String second=separated[1];
String[] newSeperated = first.split(" ");
String third = newSeperated[0];
String four= newSeperated[1];
Log.i("first",first);
Log.i("second",second);
Log.i("third", third);
Log.i("four", four);
I do not how to get the four value means 08 .