You can use DateFormat (java.text. *) To parse the date:
DateFormat df = new SimpleDateFormat("EEE MMM dd kk:mm:ss z yyyy", Locale.ENGLISH); Date d = df.parse("Mon May 27 11:46:15 IST 2013")
You will need to change the locale to match yours (with this you get 10:46:15). Then you can use the same code that you need to convert to a timestamp.
Salem
source share