I tried decompiling this with the trial version of Spices.Net, but it cut out half of the methods (as it's the trial version).
Error is occurring in the CreateDataBoundChildren method of EventCalendar, presumably on the line:
dv.RowFilter = string.Format("{0}>= #{1}# AND {0} < #{2}#", DayField, dateTime1.ToString("MM/dd/yyyy"), dateTime2.ToString("MM/dd/yyyy"));
Full stack trace:
[FormatException: String was not recognized as a valid DateTime.]
System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2136542
System.DateTime.Parse(String s, IFormatProvider provider) +26
System.Data.ConstNode..ctor(DataTable table, ValueType type, Object constant, Boolean fParseQuotes) +544
System.Data.ExpressionParser.Parse() +1168
System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +123
System.Data.DataView.set_RowFilter(String value) +172
ControlSample.EventCalendar.CreateDataBoundChildren(DataView dv, Table table, DateTime todaysDate, DateTime visibleDate, Calendar threadCalendar) +426
ControlSample.EventCalendar.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +220
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +58
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +25
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +119
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +67
System.Web.UI.Control.EnsureChildControls() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6326