SharePoint WebPart: Make DateTime control TextBox ReadOnly
Disable Keypress on DateTimeControl
Last week I check a question in MSDN forum stating that
A DateTime control is placed in a webpart. We need to allow the users to select the date only using the Calendar Icon and prevent typing the value in the TextBox.
Here is the Solution.
In the webpart, add the following lines while declaring your DateTimeControl in CreateChildControls
dtDob = new DateTimeControl();
dtDob.DateOnly = true;
Now test the Webpart. The textbox is now changed into a readOnly field.