简体   繁体   English

如何将datetimepicker限制为工作日并保存?

[英]How to restrict datetimepicker to weekdays and save it?

I need to know how am I able to restrict datetimepicker to weekdays, so the user can only select days from Monday to Friday. 我需要知道如何将datetimepicker限制为工作日,因此用户只能选择星期一至星期五的日期。

Since now it is only displaying the weekday as inserted in Custom Format (DateTimePicker Properties) an I will also need it to only save the "name" of the days of the week and not the whole field with time and day/month/year. 由于现在它仅显示以自定义格式(DateTimePicker属性)插入的工作日,因此我也将需要它仅保存星期几的“名称”,而不是保存带有时间和日/月/年的整个字段。

Thank you 谢谢

由@Plutonix解决,最好使用组合框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM