jQuery DataTables
HTML
<link rel="stylesheet" href="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.css">
<script src="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.js"></script>
<h3>jQuery DataTables</h3>
<a href="https://www.gyrocode.com/articles/tag/jquery-datatables/">See more articles about jQuery DataTables</a> on <a href="https://www.gyrocode.com/articles/">Gyrocode.com</a><hr>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Date</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Date</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>2015-07-01T00:00:00</td>
</tr>
</tbody>
</table>
<hr><a href="https://www.gyrocode.com/articles/tag/jquery-datatables/">See more articles about jQuery DataTables</a> on <a href="https://www.gyrocode.com/articles/">Gyrocode.com</a>
JavaScript
$(document).ready(function (){
var table = $('#example').DataTable({
'columns': [
{
'render': function(data, type, full, meta){
if(type === 'display'){
data = data.substr(0, 10);
}
return data;
}
}
]
});
});