When I use New-UDTimePicker or New-UDDatePicker and get their values, they both each include a date and time. I expect TimePicker to just give me time and so on for DatePicker. This is no good for me. I tried using the format method but still get the same results. Am I doing something wrong? Also, why not have a New-UDDateTimePicker?
.NET and PowerShell do not have a standard data type that is only date or only time. It’s possible to get a date or time but it’s always a DateTime object. When you retrieve the value in PowerShell, you can use the DateTime object to get whatever portions of the object you are concerned about.
The reason for separate controls is just for different user experiences.