Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to format Date after it is edited? #94

Open
YogiYang opened this issue Feb 17, 2021 · 1 comment
Open

How to format Date after it is edited? #94

YogiYang opened this issue Feb 17, 2021 · 1 comment

Comments

@YogiYang
Copy link

When we edit a Data Column the date format that is used is mm/dd/yyyy.

But instead I want the data to be dd/mm/yyyy.

How to format Date after it is edited?

@holson-zhong
Copy link

holson-zhong commented Jul 27, 2022

I do a little changed in dataTables.cellEdit.js, find the code is as follows:

var self = jQuery('.datepick').datepicker(
{
showOn: "button",
buttonImage: icon,
buttonImageOnly: true,
buttonText: "Select date",
dateFormat: "yy-mm-dd"
});

this is work for me, good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants