-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Use case
I am trying to get the text-based date input in the showDatePicker dialog to be based on specific date format (in my case DD/MM/YY). Currently, showDatePicker only takes a Locale parameter, which means that I am stuck with the choices that the available locales offer me. To my knowledge, there is no locale which would fit my use-case. As a result, I now display the date in DD/MM/YY everywhere except in the text-based input entry mode of the date-picker where my locale dictates MM/DD/YYYY, which is obviously not ideal.
Proposal
The showDatePicker method should take an optional parameter dateFormat which directly controls how the date may be entered when the user switches to DatePickerEntryMode.input. This format should override the locale's setting if necessary.