input type="date" validation message incorrect
If one has a date, that is blank and gets posted to the server, the server responds with:
Date has wrong format. Use one of these formats instead: YYYY-MM-DD.
This used to be correct when all date's where in the format YYYY-MM-DD. But with chrome 116 and locale set to South African English, my browser shows it in the format DD-MM-YYYY. This is confusing to the user, because the way its shown to the user is not the way the <input type="date"> reports it.
Here's an example:
This means unless your countries locale is in the format of YYYY-MM-DD, i.e. almost everyone except Swedan, then the error message is misleading to the user. Maybe The error message should just be: ``Date has wrong format, which does sound like great english to me... how about Date format is invalid`
PS this can't be fixed on the backend, because it's does not know what the front end locale is.
So, exactly what you want with it ?
An error message that is not misleading/incorrect. Maybe to just shorten the error message to "Date has the wrong format".
this can't be fixed on the backend
There's an unavoidable trade-off between what's typically the most sensible behaviour for us here. I'd we treat this as out of scope, and suggest using custom error messages.