carbon-addons-iot-react icon indicating copy to clipboard operation
carbon-addons-iot-react copied to clipboard

[DateTime Picker] The date format should be MM/dd/yyyy, not yyyy-MM-dd

Open neeravr23 opened this issue 3 years ago • 2 comments
trafficstars

What package is this for?

  • [ ] Angular

Summary

The date range format is currently yyyy-MM-dd, which is not consistent with the standard format. It should be MM/dd/yyyy. Attaching screenshots for reference. The date range is inconsistent across components. It should have one standard format (MM/dd/yyyy). It would be great if it supports localisation, as different regions use different format.

ee728900-e299-11ec-9a60-886378da3651 eadf0200-e299-11ec-88fa-ef11b433b30b

Specific timeline issues / requests

It will be really beneficial if this issue gets the priority.

neeravr23 avatar Jun 13 '22 10:06 neeravr23

@davidicus I would think that our calendar is localizable? I see a prop that makes it look like it is Screen Shot 2022-06-16 at 8.56.07 AM.png https://next.carbon-addons-iot-react.com/?path=/story/1-watson-iot-date-time-range-selector-datetime-picker--default

JordanWSmith15 avatar Jun 16 '22 12:06 JordanWSmith15

@JordanWSmith15 Yes, the react component has a prop to be able to control this. This seems to be an issue with the angular version.

davidicus avatar Jun 28 '22 13:06 davidicus