The day- and month-names can be done in local language taken from your phone/tablet language.

The day- and month-names can be done in local language taken from your phone/tablet language.

One problem: It won’t show 3letter day-names.

Is it my ROM or my language ??

Please try code below and share your result.

EDIT, Specs: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns

]]>

12 Commentsto The day- and month-names can be done in local language taken from your phone/tablet language.

  1. Anonymous says:

    < ![CDATA[

    LL.bindClass(“android.text.format.DateFormat”);


    var dateFormat = new DateFormat();


    var d = new Date();


    var Dname = [];


    for (var Frm = “E”; Frm < = "EEEEEEE"; Frm += "E"){



    var DagF = dateFormat.format(Frm,d);


    Dname.push( DagF);


    }


    alert(Dname);

    ]]>

  2. Anonymous says:

    < ![CDATA[

    My own result, Android v5.1.1 / Dutch.



    di,di,di,dinsdag,D,di,di

    ]]>

  3. Anonymous says:

    < ![CDATA[

    The result on an English N7 running 5.1.1 is:


    Tue,Tue,Tue,Tuesday,T,Tue,Tue


    Seems locale dependant.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert​ English is according specs for me too. Do you happen to have a French device to try?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    hhm no “Tu” ??

    ]]>

  6. Anonymous says:

    < ![CDATA[

    With French and 5.1.1 too, the result is:


    mar.,mar.,mar.,mardi,M,mar.,mar.


    (notice the dots…)



    Not a single “Tu”, nor a “ma”. I guess the only way to have three letters is to use the first three letters of the EEEE format.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    That’s plan_B and question 2:


    Are there languages where just taking first 3 letters would be wrong?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Probably. There’s always an exception somewhere, maybe a name with less than 3 letters, such as in: http://www.cjvlang.com/Dow/dowchin.html



    But we can’t handle everything, can we ?

    ]]>

  9. Anonymous says:

    < ![CDATA[

    From Spanish


    mar.,mar.,mar.,martes,M,mar.,mar.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    czech:


    út,út,út,úterý,Ú,út,út

    ]]>

  11. Anonymous says:

    < ![CDATA[

    German: Di.,Di.,Di.,Dienstag,D,Di.,Di.

    ]]>

  12. Anonymous says:

    < ![CDATA[

    thanks all for your cooperation.


    From the look of this, I will take “EEEE” and take 1, 2, 3 or all letters from it.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *