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 <[email protected]> wrote:

> 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 yyyy HH:mm:ss
> Z");
> Date date = formatter.parse("Thu, 15 Mar 2012 00:00:00 +0200");
> SimpleDateFormat simpleDateFormat =new SimpleDateFormat("dd/MM/yyyy");
> String dateAsString = simpleDateFormat.format(date);
>
> java.text.ParseException: Unparseable date: "Thu, 15 Mar 2012 00:00:00
> +0200"
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards
jagruti Sangani
*iNextrix Technologies*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to