title: DataTables: Rearrange array entities during render
body: <p>I use DataTables with server-side processing. The json object I receive contains an array of <code>LocalDateTime</code> element:</p>
  
  <pre><code>...
  "SimpleDate": [ 2000,12,31,0,0 ]
  ...
  </code></pre>
  
  <p>My <code>columns</code> definition in the initialization script is the following:</p>
  
  <pre><code>"columns": [ 
               { "data": "SimpleDate"}
             ]
  </code></pre>
  
  <p>By default, the column is rendered comma-separated: 2000,12,31,0,0</p>
  
  <p><strong>How can I change it to <code>31.12.2000</code>?</strong></p>
  
  <p>I tried <code>columnDefs</code>and <code>render</code> like:</p>
  
  <pre><code>"columnDefs": [
          {   
              "render": function ( data, type, row ) {
                  return data.2 + '.' + data.1 + '.' + data.0;
              },
              "targets": 0
          }
  </code></pre>
  
  <p>but this simply stops the table from rendering. I assume, accessing the array via <code>data.x</code>is not possible in this state.</p>
  
  <p>So, how do I do it? </p>