react-dj-table

git icon
Change theme

Date & Time

DateTimeDateColumns

Date is rendered in the browser using the browsers local date and time zone.
Specify any date-time options that are supported by Dateto.LocaleDateString(); MDN Ref

Set dateCols:[{RetiredDate:''}] as an empty string to use locale defaults

Date & Time Options #

  const options={
dateCols:[{RetiredDate:'en-GB'}],
dateOptions: { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' },
}