Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharepoint DateTimeControl: set it to null

how can I set the selected value of a Sharepoint DateTimeControl to null? When you first load it into a page, 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

like image 205
pistacchio Avatar asked Jun 15 '10 13:06

pistacchio


1 Answers

Found it.

myDateTimeControl.ClearSelection();
like image 124
pistacchio Avatar answered Sep 17 '22 19:09

pistacchio