Convert String to date in android -


how convert string "thu jul 18 13:20:12 gmt+05:30 2013" in date in android? using dateformatter , simpledateformatter throw exception saying cannot parse date format while using convert date.

simpledateformat formatter = new simpledateformat("eee mmm dd hh:mm:ss zzzz yyyy");     try {         string datestring = "thu jul 18 13:20:12 gmt+05:30 2013";         date date = formatter.parse(datestring);     } catch (exception e) {         e.printstacktrace();     } 

this how doing in android..but if can post code can precisely


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -