title: Rangevalidator for calendar extender entries gives problems in safari
body: <p>I have the following scenario:</p>
  
  <p>arrival and departure dates have to be selected on a form, through 2 textboxes with a calendar extender each.</p>
  
  <p>I validate the entries to check that no date before today is selected and to check that the departure is after the arrival. I used a rangevalidator and a comparevalidator.</p>
  
  <p>In IE, Firefox and Opera it is working fine, in Safari (on windows) however both the validators go off even on entries that should be accepted.</p>
  
  <p>It makes me suspect that the date format dd/MM/yyyy causes trouble for Safari.</p>
  
  <p>(the dd/MMMM/yyyy also gave the same troubles in the other browsers, probably due to the dependency on UIculture)</p>
  
  <p>The code is:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;
          &lt;asp:TextBox ID="txtArrive" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;cc1:TextBoxWatermarkExtender ID="txtArriveWatermarkExt" runat="server" 
              Enabled="True" TargetControlID="txtArrive" WatermarkText="arrival date"&gt;
          &lt;/cc1:TextBoxWatermarkExtender&gt;
          &lt;cc1:CalendarExtender ID="ArriveCalendarExt" runat="server" 
              CssClass="MyCalendar" Enabled="True" Format="dd/MM/yyyy" 
              TargetControlID="txtArrive"&gt;
          &lt;/cc1:CalendarExtender&gt;
          &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
              ControlToValidate="txtArrive" ErrorMessage="please select arrival date" 
              Text="*" ValidationGroup="date" Display="none"&gt;&lt;/asp:RequiredFieldValidator&gt;
          &lt;asp:RangeValidator ID="RangeValidator1" runat="server" 
              ErrorMessage="please make sure that your arrival date is later than today and not later than a year from now" 
              ControlToValidate="txtArrive" Type="Date" ValidationGroup="date" Text="*"&gt;&lt;/asp:RangeValidator&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;asp:TextBox ID="txtDepart" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;cc1:TextBoxWatermarkExtender ID="txtDepartWatermarkExt" runat="server" 
              Enabled="True" TargetControlID="txtDepart" WatermarkText="departure date"&gt;
          &lt;/cc1:TextBoxWatermarkExtender&gt;
          &lt;cc1:CalendarExtender ID="DepartCalendarExt" CssClass="MyCalendar" runat="server" Enabled="True" 
              Format="dd/MM/yyyy" TargetControlID="txtDepart"&gt;
          &lt;/cc1:CalendarExtender&gt;
          &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
              ControlToValidate="txtDepart" ErrorMessage="Please select departure date" 
              Text="*" ValidationGroup="date"&gt;&lt;/asp:RequiredFieldValidator&gt;
          &lt;asp:CompareValidator ID="CompareValidator2" runat="server" 
              ControlToCompare="txtDepart" ControlToValidate="txtArrive" 
              ErrorMessage="your departure date has to be later than your arrival date" 
              Operator="LessThan" Type="Date" Text="*" ValidationGroup="date"&gt;&lt;/asp:CompareValidator&gt;
       &lt;/td&gt;
      &lt;td&gt;
          &amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>The range validator gets its values in code behind on <code>Page_load</code></p>
  
  <pre><code>RangeValidator1.MinimumValue = DateTime.Now.AddDays(1).ToShortDateString();
  RangeValidator1.MaximumValue = DateTime.Now.AddMonths(12).ToShortDateString();
  </code></pre>
  
  <p>Does anybody have any suggestions on how to solve this problem with safari?</p>