ui:inputDateTime component format attribute does not get applied
Last updated 2018-07-17 ·Reference W-5155181 ·Reported By 0 users
When using ui:inputDateTime component, the attribute 'format' which can be provided as a string according to this doc - https://developer.salesforce.com/docs/component-library/bundle/ui:inputDateTime/specification
does not get applied to the date. Instead the date format is the locale format
Create a Lightning component with the following markup:
<aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" access="global">
<ui:inputDateTime format="DD-MM-YYYY" displayDatePicker="true"/>
Selecting the date does not display it in the mentioned "DD-MM-YYYY" format. Instead it is displayed in the locale format - MMM DD, YYYY
Reported By (0)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.