DateTime Model Binder, works for IE and Chrome but not for Firefox
<p>i have created a DefaultModelBinder to work with DateTime</p>

<p>the format is "dd-MM-yyyy"</p>

<p>this DefaultModelBinder works fine with IE and Chrome,</p>

<p>but it does not work in Firefox ??</p>

<p>any help regarding this.</p>

<p>Update : {As Requested}</p>

<pre><code>public class DateTimeBinder : DefaultModelBinder
{
    public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
    {
        var vpr = bindingContext.ValueProvider.GetValue(bindingContext.ModelName);

        if (vpr == null)
        {
            return null;

        }

        var date = vpr.AttemptedValue;

        if (String.IsNullOrEmpty(date))
        {
            return null;
        }

        bindingContext.ModelState.SetModelValue(bindingContext.ModelName, bindingContext.ValueProvider.GetValue(bindingContext.ModelName));

        try
        {
            var realDate = DateTime.Parse(date, System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag("en-GB"));

            bindingContext.ModelState.SetModelValue(bindingContext.ModelName, new ValueProviderResult(date, realDate.ToString("yyyy-MM-dd hh:mm:ss"), System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag("en-GB")));

            return realDate;
        }
        catch (Exception e)
        {
            bindingContext.ModelState.AddModelError(bindingContext.ModelName, e);
            return null;
        }

    }
}
</code></pre>

<p>Global.asax:</p>

<pre><code>        ModelBinders.Binders.Add(typeof(DateTime), new DateTimeBinder());
        ModelBinders.Binders.Add(typeof(DateTime?), new DateTimeBinder());
</code></pre>

<p>Update2: [Images Added]</p>

<p>Firefox : 
<img src="http://i.stack.imgur.com/A7NZG.png" alt="Firefox Image"></p>

<p>This is the validation Issue in Firefox.</p>

<p>Internet Explorer :
<img src="http://i.stack.imgur.com/EAtNy.png" alt="Internet Explorer Image"></p>

<p>NOTE : the request is not being sent to the SERVER, this is client-side validation from the MVC , which displays the error in FIREFOX.</p>
