[SalesForce] How to format LWC´s datatable date picker´s input display date

I have an editable date column in a lightning datatable. I need to format dates in that column even for the date picker.

Is there a way to show the string "28 Oct 2020" in the format dd/mm/yyyy such as "28/10/2020"?

enter image description here

Best Answer

Please try adding below type attributes for date which will show date like mm/dd/yyyy -

{
    label: 'Date Label',
    fieldName: 'dateApiName',
    type: 'date',
    editable: true,
    typeAttributes: {
        year: "numeric",
        month: "2-digit",
        day: "2-digit"
    }
}