I am using the below code in which I am clearing the data inside datatable. And now I need to attach a new data to existing datatable.

```
var dataTable = $('#mytable').DataTable();
dataTable.clear().draw();

var dtt = $('#mytable').DataTable({
    "aaData": GlobalTable,
    paging: false,
    searching: false,
    "columns": [
        {"data": "name"},
        {"data": "position"},
        {"data": "office"},
        {"data": "extn"},
        {"data": "start_date"},
        {"data": "end_date"},
        {"data": "salary"}
    ]
});

```

What should I use? It is giving me error Reinitialize is not allowed for the datatable.
['https://Stackoverflow.com/questions/36906926', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2696717/']
```
DECLARE @END_DATE TIME = '' ,    
     @START_DATE  TIME = ''
     SELECT CONVERT(TIME,DATEADD(MS,DATEDIFF(SS, @START_DATE, @END_DATE )*1000,0),114)

```
You can try to use the [DATEDIFF](http://msdn.microsoft.com/en-us/library/ms189794.aspx) function like this:

```
where DATEDIFF(HH,StartWork, EndWork)

```