开发者

Sharepoint DateTimeControl: set it to null

开发者 https://www.devze.com 2023-01-04 01:05 出处:网络
how can I set the selected value of a Sharepoint DateTimeControl to null? When you first load it into a pag开发者_C百科e, there\'s no value selected (even if the returned value is not properly null bu

how can I set the selected value of a Sharepoint DateTimeControl to null? When you first load it into a pag开发者_C百科e, there's no value selected (even if the returned value is not properly null but one can check it with IsDateEmpty). How can i programmatically set it back to the initial, empty value?

Thanks


Found it.

myDateTimeControl.ClearSelection();
0

精彩评论

暂无评论...
验证码 换一张
取 消