Validation messages for date fields have dates in format YYYY-MM-DD.
Would be good to pass these dates through date format function to allow them to be properly formatted.
I have attached a patch with a posible solution

Members fund testing for the Drupal project. Drupal Association Learn more


attiks’s picture

Version: 7.x-1.37 » 7.x-1.x-dev
Component: Webform Validation » Code

I think it's better to handle this in _clientside_validation_set_minmax_date. We need the change the calling code, so it no longer passes a message so it gets constructed inside this function.

As far as I can see, we don't need the date module to do this, drupal has a format_date function. And maybe we could even get the address from the field/component, so we can use that as format instead of 'short'