String gets converted to date format when saved in csv format

String gets converted to date format when saved in csv format

mayurmpmayurmp Posts: 5Questions: 2Answers: 0

Hi all, I am having a value 10-02 which gets converted to 2-Oct or else if value is 12-86 then it gets converted to Dec-86 when saving in CSV format.

Regards,
Mayur

This question has an accepted answers - jump to answer

Answers

  • mayurmpmayurmp Posts: 5Questions: 2Answers: 0
    edited April 2016

    Please find the script used for the same,

    $(document).ready(function () { $('#TableList').DataTable({ dom: 'T<"clear">lfrtip', "oTableTools": { "aButtons": [ "print", { "sExtends": "collection", "sButtonText": "Save", "aButtons": [ { "sExtends": "csv", "sCharSet": "utf16le" }, { "sExtends": "pdf", "sPdfSize": "A3", "sPdfOrientation": "landscape" } ] } ] } }); });
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Answer ✓

    I would suggest you use Buttons rather than TableTools as the later has been retried.

    If you are still having this issue with the latest version of Buttons, please link to a test page showing the issue.

    Allan

  • mayurmpmayurmp Posts: 5Questions: 2Answers: 0

    Thanks a lot Allan, I will sure check with the same and will update

This discussion has been closed.