Date time from CET to browser locale

Date time from CET to browser locale

rajgummarajgumma Posts: 19Questions: 0Answers: 0
edited October 2012 in General
Hi,

I am using datatables to display tables on a webpage. I already have the html dom for the table on which i am imposing the datatable properties

[code] var search = $("#searchTable");
var $table = search.find("table");

$table.dataTable({
"bProcessing" : true,
"bDestroy" : true,
"bAutoWidth" : true,
"sScrollY" : "200",
"sScrollX" : "100%",
"bScrollCollapse" : false,
"bSort" : true,
"aLengthMenu": [[10, 15, 25, -1], [10, 15, 25, "All"]],
"sPaginationType" : "full_numbers"

});[/code]

Now I have a column which consists of a Timestamp stored as string something like '2012-10-20 15:31:49.0' which probably will be UTC or CET.
Now I have to use the browser locale time to format this into that format.
Is it possible to do it thru the dataTabales api or do i need to look for some javascript or jquery snippets

Thanks in advance,
Raj

Replies

  • rajgummarajgumma Posts: 19Questions: 0Answers: 0
    This discussion has remained unsanswered for 5 days now.. Any help is greatly appreciated
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I'd suggest asking this in StackOverflow or some other general Javascript forum. DataTables does not include any built in string formatting methods, and this forum is specifically for DataTables questions only, not general Javascript ones.

    Allan
This discussion has been closed.