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: 2,362Questions: 76Answers: 340

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

  • allanallan Posts: 56,851Questions: 1Answers: 9,035 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.