<!DOCTYPE html>
<html>
  <head>
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/2.3.1/luxon.min.js"></script>
    <link href="https://nightly.datatables.net/css/dataTables.dataTables.css" rel="stylesheet" type="text/css" />
    <script src="https://nightly.datatables.net/js/dataTables.js"></script>
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="example" class="display nowrap" width="100%">
        <thead>
          <tr>
            <th>Date</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>30.09.2024</td>
          </tr>
          <tr>
            <td>10.10.2023</td>
          </tr>
          <tr>
            <td>30.11.2025</td>
          </tr>
          <tr>
            <td>29.03.2023</td>
          </tr>
          <tr>
            <td>29.09.2023</td>
          </tr>
          <tr>
            <td>29.03.2024</td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
DataTable.datetime('dd.MM.yyyy');
var table = new DataTable('#example');
// See what type Datatables assinged the column
var column = 0
console.log(table.settings()[0].aoColumns[ column ].sType)
2 errors
Line 6: Missing semicolon.
Line 7: Missing semicolon.
Output 300px

This bin was created anonymously and its free preview time has expired. Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers