Issue: Group by week to Date field in ListGrid.

21 views
Skip to first unread message

Mayur Laniya

unread,
Aug 7, 2021, 1:50:38 PMAug 7
to GWT Users
Hi There,

I have faced an issue with the List grid grouping column when column type is Date and group by week.

In the german locale, I used  dd.mm.yyyy format mask and
In the English locale, I used mm/dd/yyyy format mask.

Issue:
I set German locale grouping by week works fine but, When I set English locale with the same data set I get different output.

Example: I got issue in date is 11.07.2021 (dd.mm.yyyy)
12th July - 2021 comes in week number 27.

In German locale is come in week 27 that perfect but same record in English locale it shows me in week number 28. How?

I attached a screenshot for both data in both locales.

Please help me and guide me on what should I need to configure for that.

Thanks.
Untitled.png
Untitled1.png

Jens

unread,
Aug 8, 2021, 9:30:52 AMAug 8
to GWT Users
11.07.2021 is a sunday. There are different week numbering systems in the world which have different first day of week definition. For example in the EU the first day of the week is monday while in the US / Canada it is sunday. That is reflected in locales and thus you are seeing that behaviour. 


In GWT you can see locale settings here (see property firstDayOfTheWeek which contains an index of the content of property weekdays):


So with locales it is important to pick the right country as well if possible instead of just the language.

-- J.

Mayur Laniya

unread,
Aug 9, 2021, 1:51:13 AMAug 9
to google-we...@googlegroups.com
Thanks, Jens for your reply, I can understand now.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/sQCZMHbN5hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/60563850-75e2-4c30-9228-231b1c29a12fn%40googlegroups.com.


--
Thanks & Regards,
     Mayur Laniya
Reply all
Reply to author
Forward
0 new messages