I have the following string that I need put into a date time
Sat, 21-May-2011 21:31:35 GMT
So far I’m doing the following but I’m not sure of the valid format to get this parsed. Any help would be appreciated!
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
Date date = df.parse("Sat, 21-May-2011 21:31:35 GMT");
Thank you in advance
See documentation for
SimpleDateFormatfor format guidenceYou should have something like this