cancel
Showing results for 
Search instead for 
Did you mean: 

If DateTimePicker has no value, set it to today by default

lucia_wu
Employee
Employee
0 Kudos

Version:1.84.0

If DatePicker and DateTimePicker has no value, button "OK" should be always enabled since default value(Now)is set on the picker, but now, we have to select the current day to enable the 'ok' button.

But for version 1.72.0, that function is ok.

Is this a new change to ui5, or will it be optimized later?

View Entire Topic
yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI lucia.wu

Looks like you might not have selected date "25th" and "OK" button will not highlight unless you select the date. The component you have selected is Date Time picker with value (means you have to select date and time )

To set it today's date, you will have to use the event function.
Example shown in

DateTimePicker using data binding