Open Syedgit opened 6 years ago
hi @Syedgit, i suggest you to use a Pipe instead, it worked for me this approach,
constructor(private datePipe: DatePipe)
and then in the configObject.fields you could have something like this:
{ name: 'DATE',
objectKey: 'accountDate',
render: (row) => {
if (row.accountDate != null)
return this.datePipe.transform(row.accountDate, 'MM/dd/yyyy');
return ''
},
},
i hope this works for you, greetings
Any Date picker using this table? or any option to select the date?
@sahilkatia perhaps you could elaborate a little on what you want to do? If you want to be able to select a date you could look at using a custom component, perhaps together with this datepicker?
How to format date in generic table below native javascript approach is not working ?