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

grid.formatters.date error #576

Open
thdoan opened this issue Apr 21, 2024 · 0 comments
Open

grid.formatters.date error #576

thdoan opened this issue Apr 21, 2024 · 0 comments

Comments

@thdoan
Copy link

thdoan commented Apr 21, 2024

Expected behavior and actual behavior.

Expected to have no errors, but got errors.

Steps to reproduce the problem.

  1. Go to https://canvas-datagrid.js.org/examples/format-data/
  2. Double-click on any date cell
  3. Press Enter

ISSUE: This error is returned:

index.ts: Invalid time value (20:32)

  17 | });
  18 | 
  19 | grid.formatters.date = function (e) {
> 20 |   return new Date(e.cell.value).toISOString();
                                       ^
  21 | };
  22 | 
  23 | app.append(gridElement);

Specifications like the version of the project, operating system, or hardware.

Windows 10, Chrome 123.

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

1 participant