title: Localizing jquery validation with asp.net mvc 3
body: <p>I am using Asp.Net Mvc3 and the unobtrusive jquery validation. I'd like to have my dates validation localized, I mean, jquery is validating my date as being MM/dd/yyyy but I would like it to be dd/MM/yyyy.</p>
  
  <p>I'm trying to use the jQuery Globalize plugin (<a href="http://github.com/jquery/globalize">http://github.com/jquery/globalize</a>).
  I added references to the scripts globalize.js and globalize.culture.pt-BR.js and when my page loads I'm running the follwing script:</p>
  
  <pre><code>(function() {
    $(function() {
      $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
      Globalize.culture("pt-BR");
    });
  }).call(this);
  </code></pre>
  
  <p>The jQuery UI plugin works as charm, but the validation doesn't.
  What else am I missing?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Using the links in the answer below I solved the problem using the <a href="https://github.com/jquery/globalize">Globalize plugin</a>:</p>
  
  <p>Of course, I had to add a reference to the Globalize plugin in the page and also a reference to the culture that I wanted to use (all available on the plugin's site). After that is just a small piece of JavaScript code.</p>
  
  <pre><code>Globalize.culture("pt-BR");
  $.validator.methods.date = function(value, element) {
      return this.optional(element) || Globalize.parseDate(value);
  };
  </code></pre>