vss-web-extension-sdk icon indicating copy to clipboard operation
vss-web-extension-sdk copied to clipboard

Date Time Picker control only allows "picking" date, not time

Open CodeMonkeyFromSpace opened this issue 7 years ago • 1 comments

https://docs.microsoft.com/en-us/vsts/extend/develop/ui-controls/comboo?view=vsts#datetime-picker

As far as I can tell, there's no way to pick the time, only the date. The user must enter the time manually via keyboard. Am I wrong, and if not, is there any plan to add that feature?

CodeMonkeyFromSpace avatar Apr 26 '18 20:04 CodeMonkeyFromSpace

The VSS Date picker control doesnt support picking time, although you can still type a time value in it. If you want the ability to pick time via UI, you can still use other 3rd party pickers. Here's one example of how I do it in one of my extensions - https://github.com/mohitbagra/vsts-extensions/blob/master/src/ControlsLibrary/scripts/DateTimeControl.tsx

This one uses Office Fabric components to build a Date Time Picker

mohitbagra avatar May 14 '18 14:05 mohitbagra