cancel
Showing results for 
Search instead for 
Did you mean: 

How to show Today button on sap.m.DatePicker in UI5

MikeB
Contributor
0 Kudos

UI5 has a date picker controller sap.m.DatePicker, the problem is that this controller by default has no Today button, which will automatically select today's date.

Is there any way to add Today-button to sap.m.DatePicker?

View Entire Topic
MikeB
Contributor

As of 1.95.0, there is no need to invent a wheel, there is a standard property called showCurrentDateButton.

Sample, please, have a look on the "DatePicker with non-working days - 05.11.2015 - 25.11.2015 and with shortcut for today" case.

For those, who is below the 1.95.0, the Konchada's answer is a great solution!