Material-table: Date Format for the column

Created on 2 May 2020  路  3Comments  路  Source: mbrn/material-table

Custom formatter for date type in the column
How can i use custom rendering for the date in the column. As of now the date comes as 06/04/2020, but i want it as 06-Apr-2020. How can i do this.

has a solution question

Most helpful comment

try this

{
          title: 'title_text',
          field: 'field_name',
          render: row => <span>{ row["field_name"] /*formatting code here*/ }</span>
}

All 3 comments

try this

{
          title: 'title_text',
          field: 'field_name',
          render: row => <span>{ row["field_name"] /*formatting code here*/ }</span>
}

@suhasbhatta it looks like there is a solution for this. Please reopen this issue if needed.

@suhasbhatta it looks like there is a solution for this. Please reopen this issue if needed.

Sure. Thank you. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

revskill10 picture revskill10  路  3Comments

ps1011 picture ps1011  路  3Comments

Mihier-Roy picture Mihier-Roy  路  3Comments

timrchavez picture timrchavez  路  3Comments

ModPhoenix picture ModPhoenix  路  3Comments