﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - Specified time is not supported in this calendar error in WebInput</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Specified-time-is-not-supported-in-this-calendar-error-in-WebInput/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Specified time is not supported in this calendar error in WebInput</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Specified-time-is-not-supported-in-this-calendar-error-in-WebInput/</link><pubDate>Wed, 10 Mar 2010 01:10:33 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Unfortunately, currently our DateTime WebInput only support Gregorian calendar. Since the "ar-SA" culture will use non-Gregorian calendar the WebInput will throw unsupported error message.   &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Specified time is not supported in this calendar error in WebInput</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Specified-time-is-not-supported-in-this-calendar-error-in-WebInput/</link><pubDate>Tue, 09 Mar 2010 10:41:56 GMT</pubDate><dc:creator>aghausman</dc:creator><description>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext="edit" spidmax="1026"/&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext="edit"&gt;
  &lt;o:idmap v:ext="edit" data="1"/&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;

&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I am using webInput in my page which is running fine on "en-US"
culture. but as soon as I change the culture to "ar-SA" it start
throwing following error. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;Specified time is not supported in this
calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and
05/13/2029 23:59:59 (Gregorian date), inclusive.&lt;br /&gt;
Parameter name: time &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Following is the stack trace. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;[ArgumentOutOfRangeException: Specified
time is not supported in this calendar. It should be between 04/30/1900
00:00:00 (Gregorian date) and 05/13/2029 23:59:59 (Gregorian date), inclusive.
Parameter name: time]
System.Globalization.UmAlQuraCalendar.CheckTicksRange(Int64 ticks) &amp;#43;2304283
System.Globalization.UmAlQuraCalendar.GetDatePart(DateTime time, Int32 part)
&amp;#43;55 System.Globalization.UmAlQuraCalendar.GetYear(DateTime time) &amp;#43;20
System.DateTimeFormat.FormatCustomized(DateTime dateTime, String format,
DateTimeFormatInfo dtfi, TimeSpan offset) &amp;#43;946
System.DateTimeFormat.Format(DateTime dateTime, String format,
DateTimeFormatInfo dtfi, TimeSpan offset) &amp;#43;67
System.DateTimeFormat.Format(DateTime dateTime, String format,
DateTimeFormatInfo dtfi) &amp;#43;54 ISNet.WebUI.WebControls.WebInput.get_MinimumDate()
&amp;#43;500 [TargetInvocationException: Property accessor 'MinimumDate' on object
'ISNet.WebUI.WebControls.WebInput' threw the following exception:'Specified
time is not supported in this calendar. It should be between 04/30/1900
00:00:00 (Gregorian date) and 05/13/2029 23:59:59 (Gregorian date), inclusive.
Parameter name: time'] System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object
component) &amp;#43;390
ISNet.Serialization.XmlSerialization.XmlSerializer.(PropertyDescriptor &lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: &amp;quot;mangal&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;इ&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;, Object &lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: &amp;quot;sylfaen&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Ղ&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;) &amp;#43;31
ISNet.Serialization.XmlSerialization.XmlSerializer.(XmlNode ԟ, Object &lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: &amp;quot;sylfaen&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Ղ&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;, Boolean ৒) &amp;#43;1923 ISNet.Serialization.XmlSerialization.XmlSerializer.(Object
&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt; font-family: &amp;quot;sylfaen&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Ղ&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 8pt;"&gt;)
&amp;#43;232 ISNet.Serialization.XmlSerialization.XmlSerializer.() &amp;#43;195
ISNet.Serialization.XmlSerialization.XmlSerializer.SerializeObject(Object
objInstance) &amp;#43;50 ISNet.WebUI.ISNetControl.GetXMLData() &amp;#43;124 ISNet.WebUI.WebControls.WebInput.GetXMLData()
&amp;#43;364 ISNet.WebUI.ISNetControl.(Object Ӷ, EventArgs ӷ) &amp;#43;514
System.EventHandler.Invoke(Object sender, EventArgs e) &amp;#43;0
System.Web.UI.Control.OnPreRender(EventArgs e) &amp;#43;8684342
CogCloud.WebDesktop.DesktopPageBase.OnPreRender(EventArgs evt) in
D:\MyProjects\CogCloudNew\Library\WebDesktop\DesktopPageBase.vb:230
System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;80
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) &amp;#43;842&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;To my understanding the problem is
DateTime culture. According to the English calendar minimum date can be
"1-1-1900" but in Arabic calendar current year is 1431. So Somehow
webinput is not aware of the page culture being changed. &lt;/span&gt;&lt;/p&gt;



&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Can somebody please guide me in right
direction&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;
</description></item></channel></rss>