Skip to Content
0
Jul 09 at 04:16 AM

SAPUI5 Date Picker only for Month and Year

49 Views Last edit Jul 09 at 07:54 AM 2 rev

Hello Experts,

I am using SAP HANA XSA to create an UI5 application using MTA Project.

I want a Date Picker with only Month and Year.

I copied the below code from UI5 Samples but it is still showing the date part.

<DatePicker
id="DP101"
value="2015-11-23"
displayFormat="MM-y"
change="handleChange"
class="sapUiSmallMarginBottom"/>

https://sapui5.hana.ondemand.com/#/entity/sap.m.DatePicker/sample/sap.m.sample.DatePicker/code

Could you please help me?

Thank You.

Best Regards,

Ajinkya Jadhav