i need to remove "GMT" from a string like this one "2012-07-15 17:00 GMT". Try to use this code, but testDate returns null. Can anyone help ?
Thank you
String date = "2012-07-15 17:00 GMT";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
Date testDate = null;
try {
testDate = sdf.parse(date);
}catch(Exception ex){
ex.printStackTrace();
}