Posted: 24 Apr 2018 11:46 EDT Last activity: 1 Mar 2019 11:07 EST
Date Calendar UI Control
I've got a requirement where I want to allow the users to select the Month and Year of a date. I am aware the Date and DateTime properties have date-picker and dropdown controls, however both require the Day to be selected as a mandatory component. The format I need is MM-yyyy or any variation of a date with no Day-(DD) component. Is there a OOTB to do this?
It's also worth noting that I'm working with pega KYC and UI controls must be defined at property level.
I think we don't have such OOTB, but for your requirement try two dropdown values to capture year, month and if you still want data picker than try to capture date and formate the date with given function @DateTime.FormatDateTime(.dateproperty,"YYYY-MM",strTimeZone,strLocale) and store the value.