Date(time) format problem
Date(time) format problem
in Editor
Hi all
I'm using datatables in conjunction with the editor library for inline editing.
In my date(time) fields I can't seem to define a format that will only be used for display and editing because I would like to send/receive only ISO formats to/from the server.
Can anyone tell me how to do this?
Thanks in advance!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There are two options:
Regards,
Allan
Hi Allan
Thank you for your answer.
In fact I was already using a renderer in the table:
and it displays correctly. It is when I activate the inline edit that the display changes to the format that is defined in the editor so it shows f.i. 2016-09-06 and if I define a format for the editor, it will also use that value to send to the server.
In the library I was using before I had the possibility to define a viewformat which fit my purpose. I was hoping to find something similar in editor.
Sorry for being unclear before.
Regards
I understand - thanks for the clarification. Unfortunately, at the moment Editor's
datetimefield does not support two different formats (wire and display). It uses the same format for setting and getting.That is something I would like to add in future, but it isn't available yet I'm sorry to say.
Allan