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

jlgreene2 picture jlgreene2  路  3Comments

terapepo picture terapepo  路  3Comments

roseak picture roseak  路  3Comments

victorwvieira picture victorwvieira  路  3Comments

slevy85 picture slevy85  路  3Comments