F
Filamentβ€’5mo ago
Mnemonic

Form DateTimePicker displayFormat with default native ui

This might fall under the too obvious to document category, but is it expected that setting a displayformat on a "native" datetimepicker does not adjust the format? I spent a while poking at it before I realized I needed to disable the native dialog to adjust the format. Firefox121, ubuntu 22.04 if it matters...
2 Replies
CT
CTβ€’5mo ago
For me on Windows, latest Chrome ->displayFormat() works for both ->native(false) and ->native(true). The diference I have on mine is that only the native displays the placeholder and only the native allows typing directly into the field. Left is native false, right is native true. But after choosing a date, both display in the same format for me.
No description
CT
CTβ€’5mo ago
actually investigating it a bit more, I think you're right and ->displayFormat() only works with non-native by coincidence I think the native one displays in the format I want, ie what i had already set in ->displayFormat() I would say it's worth submitting a PR to the docs πŸ™‚