Also, You cannot show 'T' by using E. Tue or Thu will be shown.

Here is the rule (for text, i.e. month, day or week etc)
4 or more pattern letters → use the full form, less than 4 pattern
letters → use a short or abbreviated form if one exists.
Single letter abbreviated form for day or week is not available.

And, even if you could, how could you differentiate between Tuesday
and Thursday as both would show T?

Regards
Sarwar Erfan


On Aug 5, 5:24 pm, Sarwar Erfan <[email protected]> wrote:
> Hi,
> Please share your code snippet.
>
> Following works fine:
>         SimpleDateFormat formatter = new SimpleDateFormat("MM/dd E");
>         Date currentTime_1 = new Date();
>         String dateString = formatter.format(currentTime_1);
>         Log.d(TAG, dateString);
>
> ---> this prints <---
> 08/05 Thu
>
> Regards
> Sarwar Erfan
>
> On Aug 5, 4:53 pm, Jags <[email protected]> wrote:
>
> > i am trying to do
>
> > Format formatter = new SimpleDateFormat("MM/dd E");
>
> > like i wanna display 08/05 T   {month/day dayofweek}
>
> > but only 08/05 is displayed. Day is not displayed.
>
> > how to do that ?

-- 
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