question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(v2) Date Picker: Ignores `dateFormat` property value

See original GitHub issue

Detailed description

Describe in detail the issue you’re having.

We’re trying to localize the Date Picker’s picked date through setting the dateFormat property. We tried Y-m-d (general) and d.m.Y (German) but both gets ignored and the value still shows as m/d/Y (US)

Is this a feature request (new component, new icon), a bug, or a general issue?

Bug

Is this issue related to a specific component?

Date Picker

What did you expect to happen? What happened instead? What would you like to see changed?

The component should ideally react to the browser language. At least it should respect the property setting.

What browser are you working in?

Chrome

What version of the Carbon Design System are you using?

v2@latest

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

IBM ADDI

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
stanislavgeorgievcommented, Jun 10, 2019

@zvonimirfras Can we have this back ported to v2 please?

0reactions
cal-smithcommented, Jun 11, 2019

😬 if I have some time I’ll see about writing some docs around dealing with the v9 branch

Read more comments on GitHub >

github_iconTop Results From Across the Web

(v2) Date Picker: Ignores dateFormat property value #554
We're trying to localize the Date Picker's picked date through setting the dateFormat property. We tried Y-m-d (general) and d.m.Y (German) ...
Read more >
Datepicker loses date value when dateFormat doesn't include ...
The goal is to store the actual date chosen in the hidden field, but to display only the month and year in the...
Read more >
DateTime picker displays incorrect format for our region
The DateTimeZone property of the date picker does NOT determine how a date is displayed but it determines the time zone of the...
Read more >
UIDatePicker | Apple Developer Documentation
The date picker uses that information when formatting date and time values for the current user, and defaults to the device's locale, calendar,...
Read more >
Telerik Web Forms RadDatePicker Formatting Values
Therefore if the DateFormat property is set to "MM/yyyy" the date input ignores the selected day and tries to parse a string containing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found