Is Conditional Date Formatting Possible on an Input?

Hi there @teodor

I have a Date / Time Picker type of input field I would like to have conditionally formatted…

If the time component is 00:00:00 then I’d like it to read “2nd October 2022”.
If the time component is not 00:00:00 then I’d like it to read “2nd October 2022 (10:00)”

Is this possible for the is="dmx-date-picker" timepicker="" type of input?

I tried putting dmx-bind: before the format="" entry but then the formatting didn’t work…

(This is for my main app which is still on Wappler 3.9.7…)

Thanks!
Antony.

I’m afraid there’s no way to do check this and apply different formats for this condition inside the date picker.

1 Like