title: How to fix regional settings for jQuery datepicker so it works in Firefox and IE7?
body: <p>I am using jQuery' s datepicker and asp.net MVC4. The datepicker works in Firefox but in IE7 i get the message through the asp.net's validation that the field is not a date.</p>
  
  <p>This is the code for the datepicker</p>
  
  <pre><code>if (!Modernizr.inputtypes.date) {
          $(function() {
              $.datepicker.setDefaults($.datepicker.regional['en-GB']);
              $(".datefield").datepicker();
          });
      }
  </code></pre>
  
  <p>This is my globalization setting in Web.config</p>
  
  <p><code>&lt;globalization uiCulture="en-GB" culture="en-GB" /&gt;</code></p>
  
  <p>E.g. in Firefox the date is shown as "19/03/2012" string and accepted by the asp.net's validation setup (client and server side). In IE7 the same date string is not accepted on the client. If i change it to "03/19/2012" the client accepts the date but then the server throws an exception - "InvalidOperationException. Nullable object must have a value."</p>
  
  <p>My viewModel uses a null-able DateTime that i cast to a non null-able DateTime in the controllers post action. This works in Firefox but in IE7 the value for the date from the viewModel is null. What is the problem?</p>