I tried this:
"dd-MM-yy'T':HH:mm:SSZ"
But Im getting
java.text.ParseException: Unparseable date: "2015-02-25T15:06:38+0000" (at offset 11)
This is my code:
SimpleDateFormat format = new SimpleDateFormat(Preferences.SERVER_TIMESTAMP_FORMAT);
Date date = null;
try {
date = format.parse(serverTimestamp);
return date.getTime();
} catch (ParseException e) {
e.printStackTrace();
return 0;
}
Try "yyyy-MM-dd'T'HH:mm:ssZ"
:
T