columndefs for RFC 2822 (or ideally most flexible) date sort?
-
In brief: what columndefs – type to use to get the most flexible (for a USA audience) datetime parsing and sorting, and what formats would be accepted?
Details:
Ideally, I’d like these dates to sort in the right order: December 24, March 24 10:45 AM, “April 4 6:30-8pm”, January 15 10:00 AM, “April 6 9-10:30 am”
If that’s not possible, I’d hope to enable RFC 2822 sorting, so that these dates sort correctly: Wed, 02 Oct 2002 10:00:00 EST, Wed, 02 Oct 2002 08:00:00 EST, Mon, 30 Sep 2002 10:00:00 EST, Thu, 03 Oct 2002 10:00:00 EST, Fri, 04 Oct 2002 10:00:00 EST
I have TablePress Extension: Sorting plugins installed and activated.
Custom commands: “columnDefs”: [ { “type”: “luxon”, “targets”: [ 1,2,3 ] } ], “order”: [ [ 2, “desc” ] ]
Also tried with datetime-luxon, to no avail. All I get is alpha-order, e.g. Fri then Thu then Wed, independent of calendar dates.
Goal is for non-techie volunteers to be able to enter dates/times and to have those dates/times display in a friendly way, to a USA-based audience. RFC 2822 is a bit “computer-y” for them, but we could live with it.
P.S. I’m still in my first 24 h of testing w/Tablepress – it’s amazing and wonderful and will help our volunteers tremendously – Thank you.
The page I need help with: [log in to see the link]
- The topic ‘columndefs for RFC 2822 (or ideally most flexible) date sort?’ is closed to new replies.