I would like to customise the expected format of dates (for example "yyyy-MM-dd") that I will be receiving from the form on my webpage (encoded as application/x-www-form-urlencoded, not JSON).
If I am to override the date parsing part, can I subclass the existing one or do I have to write (I.e. copy paste) the full one from scratch?
I didn’t have the chance to check how the existing URLEncodedFormDecoder is implemented.
Also, if I am to go down this route, does it mean I have to change the global parser or otherwise I will loose the inbuilt content type negotiation logic? Is this correct?
Correct the type is public so you can initialise it how you like. In terms of changing the global parser etc, you can either override the global decoder for .urlEncodedFormData or you can use it as a one off for a specific route