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

Check for bad date input #27

Open
LauraAubin opened this issue Oct 6, 2019 · 0 comments
Open

Check for bad date input #27

LauraAubin opened this issue Oct 6, 2019 · 0 comments
Labels
bug Something isn't working Small Easy and quick

Comments

@LauraAubin
Copy link
Owner

LauraAubin commented Oct 6, 2019

Prevent saving and show an error indicator.

Bad input includes,

  • Undefined
  • Typos
  • A day that is larger than the month's last day
  • Nothing related to a date at all (sweet potato)

Possible solution

Try...catch with a default for today.

@LauraAubin LauraAubin added bug Something isn't working Small Easy and quick labels Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Small Easy and quick
Projects
None yet
Development

No branches or pull requests

1 participant