JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › DateTime API in React table › Reply To: DateTime API in React table
December 2, 2022 at 4:22 pm
#104047
svetoslav_borislavov
Participant
Hi,
You should change the settings.value in order to display the correct format.
{
label: ‘Date’,
dataField: ‘date’,
formatFunction: function (settings) {
const formatedDate = new Smart.Utilities
.DateTime(settings.value)
.toString(‘MM/dd/yyyy’);
settings.value = formatedDate;</div>
}
}
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/
- This reply was modified 1 year, 10 months ago by svetoslav_borislavov.
- This reply was modified 1 year, 10 months ago by svetoslav_borislavov.