我的多文化项目中有错误
错误消息:
此日历不支持指定的时间。它应该在03/21/0622 00:00:00(格里高利日期)和12/31/9999 23:59:59(格里高利日期)之间。 参数名称:时间
我的程序堆栈:
at System.Globalization.PersianCalendar.CheckTicksRange(Int64 ticks)
at System.Globalization.PersianCalendar.GetDatePart(Int64 ticks, Int32 part)
at System.Globalization.PersianCalendar.GetYear(DateTime time)
at System.DateTimeFormat.FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset)
at System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset)
at System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi)
at System.DateTime.ToString()
at Telerik.WinControls.UI.RadDateTimePickerCalendar.maskBox_ValueChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Telerik.WinControls.UI.RadMaskedEditBoxElement.CallValueChanged(EventArgs e)
at Telerik.WinControls.UI.MaskDateTimeProvider.Validate(String stringValue)
at Telerik.WinControls.UI.RadMaskedEditBoxElement.set_Text(String value)
at Telerik.WinControls.UI.RadDateTimePicker.set_Text(String value)