material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Date Format for the column

Open suhasbhatta opened this issue 6 years ago • 3 comments

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.

suhasbhatta avatar May 02 '20 07:05 suhasbhatta

try this

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

hongjs avatar May 28 '20 04:05 hongjs

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

matthewoestreich avatar May 31 '20 23:05 matthewoestreich

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

Sure. Thank you. :)

suhasbhatta avatar Jun 01 '20 02:06 suhasbhatta