RenderContents...
DateTimeControl dtcBegin;
DateTimeControl dtcEnd;
dtcBegin = new DateTimeControl();
dtcEnd = new DateTimeControl();
this.Controls.Add(dtcBegin);
this.Controls.Add(dtcEnd);
And to reference the selected date do this:
System.DateTime start = dtcBegin.SelectedDate;
System.DateTime end = dtcEnd.SelectedDate;
1 comment:
You just made something that I thought was so difficult be, truly, so easy! Thanks for the post!
Post a Comment