C# c语言中的多元文化#

C# c语言中的多元文化#,c#,culture,C#,Culture,我的多元文化项目有错误 错误消息: 此日历不支持指定的时间。该日期应介于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,

我的多元文化项目有错误

错误消息:

此日历不支持指定的时间。该日期应介于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)

时间的值是多少?您已经尝试在该行设置断点了吗?该行位于PersianCalendar中。net frame work classI很容易假设Telerik尚未调试其控件以使用波斯日历。毫无疑问,他们隐含地假设一个位数可以转换成一年。作品采用格鲁吉亚历法,卡布姆采用波斯历法。你需要他们的支持才能渡过难关。