15
faheel
271d

Handling date and time input on a web app is hard. And when you need to handle a range, it becomes even harder.
There are several date formats and 2 time formats, and various ways of validating the input (pattern, min, max).
You'll also need to make sure that the start date-time comes before the end date-time.
But still, no matter how much you validate on the client-side, it's still possible to bypass it, so you need to validate on the server-side as well 😫

Comments
  • 0
    joda-ish libs
  • 0
    Never, I repeat, NEVER rely on validation in frontend!! Always validate in bkend.

    If I'm using curl I will never see your frontend validations..
Your Job Suck?
Get a Better Job
Add Comment