[android-developers] date format problem

2012-03-30 Thread Eyal Berman
i try to format a date from XML file the date is in the format Thu, 15 Mar 2012 00:00:00 +0200 i use that code but get an error SimpleDateFormat formatter = new SimpleDateFormat(E, dd MMM HH:mm:ss Z); Date date = formatter.parse(Thu, 15 Mar 2012 00:00:00 +0200); SimpleDateFormat

Re: [android-developers] date format problem

2012-03-30 Thread jagruti sangani
you can use calender also for the getting the current date and time.also you can get separate form that.But in which format you want? On Fri, Mar 30, 2012 at 12:35 PM, Eyal Berman bermane...@gmail.com wrote: i try to format a date from XML file the date is in the format Thu, 15 Mar 2012

Re: [android-developers] date format problem

2012-03-30 Thread Ralph Bergmann | the4thFloor.eu
Am 30.03.12 09:05, schrieb Eyal Berman: i try to format a date from XML file the date is in the format Thu, 15 Mar 2012 00:00:00 +0200 try this: /** * Thu, 04 Aug 2011 09:00:00 +0200 */ protected static final SimpleDateFormat FORMATTER_StringToDate = new SimpleDateFormat(E, dd