Date Picker
Date pickers pickers provide a simple way to select a single value from a pre-determined set.

New-UDDatePickerOnChange Event Handler
The OnChange event handler is called when the date changes. You can access the current date by using the $Body variable.
Variant
You can customize how the date picker is shown. The default is the inline variant that displays the date picker popup in line with the input control. The static variant displays the date picker without having to click anything.
Locale
To set the locale of the date picker, specify the -Locale parameter.

Minimum and Maximum
By default, the user can select any date. To specify minimum and maximum dates, use the -MinimumDate and -MaximumDate parameters.
Views
You can limit which portions of the date picker are included by using the -Views parameter. For example, if you wanted to remove the year selector and limit to the current year, you could do the following.
API
Last updated
Was this helpful?