How to get dd-mmm-yyyy input format for datatables editor

How to get dd-mmm-yyyy input format for datatables editor

VinuraDVinuraD Posts: 23Questions: 5Answers: 0

Hi, Can someone explain how do I get dd-mmm-yyyy input format in data tables editor. So that the date picked by the user, using the date picker interface is displayed and sent to the server in dd-mmm-yyyy format.
Thanks

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 20,301Questions: 26Answers: 4,769
    Answer ✓

    Maybe this thread will help.

    Kevin

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    You can also use properties for datetime - displayFormat and wireFormat - see example here,

    Colin

  • VinuraDVinuraD Posts: 23Questions: 5Answers: 0

    Thanks for the replies. The data is formatted is in the form of dd-mmm-yy even though I give dd-mmm-yyyy as the format. What can be the issue? can this be an error with the momentjs library??

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Are you able to link to your page, please, so we can take a look. If not, could you give some example of the data, please.

    Colin

  • VinuraDVinuraD Posts: 23Questions: 5Answers: 0

    Hi! Now it's working. Thanks!

This discussion has been closed.