displaying and sorting by date #2941
Unanswered
frofro1979
asked this question in
Q&A
Replies: 1 comment
-
I found a solution: My Column definition looks like this
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an array of objects. One of the object members is a Date (which is converted after the API call). My Column definition looks like this
{
Header: 'Requested Mfg',
id:'requestedMfgDate',
accessor: d => {
return d.requestedMfgDate.toString()
},
sortType:'datetime'
},
When I click the sort button (in the column header) I get 'a.getTime is not a function'. I assume because I am formatting the date as a string for display. When I try to render the date as an object I get the 'objects are not valid react children' error.
I apologize if this has been answered here. I haven't found anything but will keep looking.
Beta Was this translation helpful? Give feedback.
All reactions