I got it working with default DatePicker component in this order:
- Initialize with a date the component likes which is for example 01.01.2021 (day <= 12)
New-UDDatePicker -Id 'startDate' -Value '01.01.2021 23:59:59'
- Set value to anything you want
Set-UDElement -Id 'startDate' -Properties @{
Value = '31.12.2021 00:00:00'
}
Thanks!