do not want to show milliseconds.

do not want to show milliseconds.

krishanu_debnathkrishanu_debnath Posts: 18Questions: 1Answers: 0

I am storing '2022-06-25 16:15:01' in my database, but when I display data using datatable using both way ( ajax call or call function directly) , it appears like '2022-06-25 16:15:01.0'. Which I don't want. I want it to appear like '2022-06-25 16:15:01' exactly same as database, which is ideal for me..

Replies

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421

    Just make sure you return the proper format from the server and make sure you don't do any client side rendering.

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin

    So we can check what the server is returning, can you use the debugger to give me a trace please - click the Upload button and then let me know what the debug code is.

    Allan

Sign In or Register to comment.