{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/kendo-intl/issues/52","repository_url":"https://api.github.com/repos/telerik/kendo-intl","labels_url":"https://api.github.com/repos/telerik/kendo-intl/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/telerik/kendo-intl/issues/52/comments","events_url":"https://api.github.com/repos/telerik/kendo-intl/issues/52/events","html_url":"https://github.com/telerik/kendo-intl/issues/52","id":346147652,"node_id":"MDU6SXNzdWUzNDYxNDc2NTI=","number":52,"title":"Norwegian date format is not correct","user":{"login":"vimalraj-a","id":13977942,"node_id":"MDQ6VXNlcjEzOTc3OTQy","avatar_url":"https://avatars1.githubusercontent.com/u/13977942?v=4","gravatar_id":"","url":"https://api.github.com/users/vimalraj-a","html_url":"https://github.com/vimalraj-a","followers_url":"https://api.github.com/users/vimalraj-a/followers","following_url":"https://api.github.com/users/vimalraj-a/following{/other_user}","gists_url":"https://api.github.com/users/vimalraj-a/gists{/gist_id}","starred_url":"https://api.github.com/users/vimalraj-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimalraj-a/subscriptions","organizations_url":"https://api.github.com/users/vimalraj-a/orgs","repos_url":"https://api.github.com/users/vimalraj-a/repos","events_url":"https://api.github.com/users/vimalraj-a/events{/privacy}","received_events_url":"https://api.github.com/users/vimalraj-a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-31T11:31:46Z","updated_at":"2018-09-18T06:49:36Z","closed_at":null,"author_association":"NONE","body":"Norwegian short date is not same as kendo JS culture.\r\n\r\nKendo JS Culture (nb):\r\n```\r\npatterns: {\r\n    d: \"dd.MM.yyyy\",\r\n    D: \"d. MMMM yyyy\",\r\n    F: \"d. MMMM yyyy HH:mm:ss\",\r\n    g: \"dd.MM.yyyy HH:mm\",\r\n    G: \"dd.MM.yyyy HH:mm:ss\",\r\n    m: \"d. MMMM\",\r\n    M: \"d. MMMM\",\r\n    s: \"yyyy'-'MM'-'dd'T'HH':'mm':'ss\",\r\n    t: \"HH:mm\",\r\n    T: \"HH:mm:ss\",\r\n    u: \"yyyy'-'MM'-'dd HH':'mm':'ss'Z'\",\r\n    y: \"MMMM yyyy\",\r\n    Y: \"MMMM yyyy\"\r\n}\r\n```\r\n\r\nKendo-intl (nb):\r\n```\r\npatterns: {\r\n    d: \"d.M.y\",\r\n    D: \"EEEE d. MMMM y\",\r\n    m: \"d. MMM\",\r\n    M: \"d. MMMM\",\r\n    y: \"MMM y\",\r\n    Y: \"MMMM y\",\r\n    F: \"EEEE d. MMMM y HH:mm:ss\",\r\n    g: \"d.M.y HH:mm\",\r\n    G: \"d.M.y HH:mm:ss\",\r\n    t: \"HH:mm\",\r\n    T: \"HH:mm:ss\",\r\n    s: \"yyyy'-'MM'-'dd'T'HH':'mm':'ss\",\r\n    u: \"yyyy'-'MM'-'dd HH':'mm':'ss'Z'\"\r\n}\r\n```\r\n\r\nDD.MM.YYYY (e.g., 24.12.2006 for Christmas Eve, or 01.05.2006 for Labour Day) is by far the most common system, and is the one recommended by the Language Council of Norway. Dots are the most common separator, although you still see stroke and hyphen (especially in handwriting): 24/12-2005.\r\nRefer: https://en.wikipedia.org/wiki/Date_and_time_notation_in_Norway"},"comment":{"url":"https://api.github.com/repos/telerik/kendo-intl/issues/comments/422275531","html_url":"https://github.com/telerik/kendo-intl/issues/52#issuecomment-422275531","issue_url":"https://api.github.com/repos/telerik/kendo-intl/issues/52","id":422275531,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjI3NTUzMQ==","user":{"login":"tsvetomir","id":247917,"node_id":"MDQ6VXNlcjI0NzkxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/247917?v=4","gravatar_id":"","url":"https://api.github.com/users/tsvetomir","html_url":"https://github.com/tsvetomir","followers_url":"https://api.github.com/users/tsvetomir/followers","following_url":"https://api.github.com/users/tsvetomir/following{/other_user}","gists_url":"https://api.github.com/users/tsvetomir/gists{/gist_id}","starred_url":"https://api.github.com/users/tsvetomir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsvetomir/subscriptions","organizations_url":"https://api.github.com/users/tsvetomir/orgs","repos_url":"https://api.github.com/users/tsvetomir/repos","events_url":"https://api.github.com/users/tsvetomir/events{/privacy}","received_events_url":"https://api.github.com/users/tsvetomir/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T06:49:36Z","updated_at":"2018-09-18T06:49:36Z","author_association":"MEMBER","body":"@vimalraj-a The CLDR database lists \"dd.MM.y\" as a [short date format](https://www.unicode.org/cldr/charts/34/summary/nb.html#1962) for Norwegian Bokmål. This format is very similar to what you expect, but years won't be padded to four digits.\r\n\r\nThe problem seems to be caused by [the date pattern definition](https://github.com/telerik/kendo-intl/blob/develop/src/cldr/load-dates.js#L8) which looks up [availableFormats](http://www.unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems) instead of taking the short date format directly. /cc @danielkaradachki\r\n\r\n@timlestander the [short date format](https://www.unicode.org/cldr/charts/34/summary/sv.html#1967) for Swedish is \"dd-MM-y\". Due to the same issue, we're picking up \"y-MM-dd\" instead. Do you think \"dd-MM-y\" is a better fit?\r\n\r\nReference the [Date Field Symbol Table](http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table) for interpreting the date formats."}}
{"actor":{"display_login":"tsvetomir"}}