I am using this JSON file in one of my tables. As you can see, one of the JSON objects is logon
which gives a plain text string for when the person logged on to the VATSIM Network.
My code for my table which is displayed on this site is as follows:
<table data-toggle="table" data-url="http://api.vateud.net/online/pilots/eg.json" data-cache="false" data-show-refresh="true" data-query-params="queryParams" data-pagination="true" data-search="true" data-page-list="5, 10, 25, 50, 100, All" data-height="400"
data-sort-name="callsign" data-sort-order="asc">
<thead>
<tr>
<th data-field="callsign" data-halign="center" data-align="center" data-sortable="true">Callsign</th>
<th data-field="name" data-halign="center" data-align="center" data-sortable="true">Name</th>
<th data-field="aircraft" data-halign="center" data-align="center" data-sortable="true">Aircraft</th>
<th data-field="origin" data-halign="center" data-align="center" data-sortable="true">Departure Airport</th>
<th data-field="destination" data-halign="center" data-align="center" data-sortable="true">Arrival Airport</th>
<th data-field="flight_type" data-halign="center" data-align="center" data-sortable="true">Type</th>
<th data-field="route" data-halign="center" data-align="center" data-sortable="true">Route</th>
<th data-field="altitude" data-halign="center" data-align="center" data-sortable="true">Altitude</th>
<th data-field="groundspeed" data-halign="center" data-align="center" data-sortable="true">Groundspeed</th>
<th data-field="transponder" data-halign="center" data-align="center" data-sortable="true">Squawk</th>
<th data-field="logon" data-halign="center" data-align="center" data-sortable="true">Logon Time</th>
</tr>
</thead>
</table>
Is there a way of using Bootstrap-Tables to parse the plain text string into a formatted date and time stamp before injecting it into the table?
Thanks in advance.