You need to sign in to do that
Don't have an account?
Leticia Monteiro Freitas 4
Change the date format from input type=date
Hello, I'm trying to use the tag < input type="date" /> but when I use my date is formated like "mm/dd/yyyy".
Can anyone can show how change to: "dd/mm/yyyy"?
Can anyone can show how change to: "dd/mm/yyyy"?
The formats you should expect to see for each locale are documented here: Supported Locales.
The incorrect format you are seeing is due to this known issue: Lightning:input $Locale date/time formats are inconsistent with the docs. As Avijit suggests, the current workaround is to use ui:inputDate, but hopefully Salesforce will fix this soo
https://developer.salesforce.com/docs/component-library/bundle/lightning:input/documentation
https://success.salesforce.com/issues_view?id=a1p3A000000FmAgQAK