eisenbraun / columns

A jQuery plugin that converts JSON data into searchable, sortable, HTML tables
http://eisenbraun.github.io/columns
MIT License
104 stars 47 forks source link

format Date text using column header template #14

Closed cmahaj closed 5 years ago

cmahaj commented 9 years ago

Is there a way we can format date text being recieved in JSON call (for eg. 2015-06-02T01:18:05.858Z) to be displayed as (02-Jun-2015 06:05 PM) using header template.

Additionally, if above is possible can we have sort on this date column sorts the result as per date and not as text.

petejordan commented 8 years ago

ditto

vordan commented 8 years ago

You can format your dates in the JSON object or even earlier, in SQL. That's what I did..