This example shows two date columns, each of which is formatted in a different way. The formatting is specified by the dateFormat option for the field, which is defined by jQuery's formatDate method. On the server, the MySQL date stamp is created in the required format using get and set formatters, and a suitable validator to ensure the date submitted is in the expected format.
|First name||Last name||Updated date||Registered date|
The HTML shown below shows the
TABLE that is used in this example.
The code below is that HTML that is used to drive the server-side section of this exampe.
Editor submits and retrieves information by Ajax requests. The two blocks below show the data that Editor submits and receives, to and from the server. This is updated live as you interact with Editor so you can see what is submitted.
The following shows the data that has been submitted to the server when a request is made to add, edit or delete data from the table.
// No data yet submitted
The following shows the data that has been returned by the server in response to the data submitted on the left and is then acted upon.
// No data yet received
DataTables can request information to display from the server when the page first loads. The block below shows the response from the server.