While fixing an issue with resources management in Calendar pickers in tw2.forms I realized that they use two different date formats.
As you can see for my commit:
The DatePicker was using US style dates, while the DateTime picker was using the international one. My proposted change moved both to the international format, to provide a coherent format that should be readable for every country.
Doing this I noticed that is wasn't possible to use the tw2.core validator for DateTime together with the DateTimePicker, because the validator expects the US format, while the picker provided the international one. After my change both the DateTimePicker and the DatePicker provide the international one, so it would probably be the case to also update the tw2.core validators to work on the international format by default.
This will change application behaviour for people that didn't provide a custom format, but it is probably the way to go because before:
- Date and DateTime had two different behaviours
- it was broken when mixing DateTimePicker with DateTimeValidator
- It was meaningful only for US and caused %d/%m VS %m/%d confusion for europeans
What do you think?