Hi I am trying to parse a string to a date but it is throwing the exception java.text.ParseException: Unparseable date: "1409239380000" (at offset 13)
. Here is my code:
String text="1409239380000";
try{
SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date1=dateFormat.parse(text);
}catch(Exception e){
Log.e("Error final:", e.toString());
}