date is changing when is sent to controller with ajax
<p>i have a strange situation. When i send a datetime value from view to controller with ajax, in controller the value is changed. </p>

<p>For example, if my view have a '30-08-2014' value (dd-MM-yyyy format), in my controller is received as '29-08-2014 23:00:00'.</p>

<p>I think the issue is in an invalid time zone, but both the browser and the application (controller) is running in my local computer, so they should have the same time zone</p>

<p>My current time zone is UTC-04:00 Santiago</p>

<p>This code generates the commented issue</p>

<p>Index View</p>

<pre><code>@{
    Layout = "";
}

&lt;html&gt;
&lt;head&gt;
    &lt;script src="@Url.Content("~/Content/Plugins/jQuery/jquery-1.11.3.min.js")"&gt;&lt;/script&gt;

    &lt;script type="text/javascript" language="javascript"&gt;
        $(document).ready(function () {
            $('#send-date').on('click', function () {
                $('#value-from-user').val($('#my-date').val().toDate().toISOString());
                var myData = { myDate: $('#my-date').val().toDate().toISOString() };
                $.ajax("Test/Date", {
                    data: myData,
                    dataType: 'HTML',
                    processData: true,
                    method: 'POST',
                    success: function(data) {
                        $('#result').html(data);
                    }
                });
            });
        });

        //input is dd-MM-yyyy format
        String.prototype.toDate = function () {
            var parts = this.split("-");
            return new Date(parts[2], parts[1] - 1, parts[0]);
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type="text" id="value-from-user" disabled/&gt; &lt;br /&gt;
&lt;label for="my-date"&gt;Input in dd-MM-yyyy format&lt;/label&gt;&lt;input type="text" name="my-date" id="my-date" value="30-08-2014"/&gt; &lt;br/&gt;
&lt;input type="button" name="send-date" id="send-date" value="Send Date"/&gt;&lt;br/&gt;
&lt;div id="result"&gt;

&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Date View</p>

<pre><code>@model DateTime
@{
    Layout = "";
}

@string.Format("Input date is {0}", Model.ToString("dd-MM-yyyy HH:mm:ss.fff tt"))
</code></pre>

<p>Controller</p>

<pre><code>public class TestController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Date(DateTime myDate)
        {
            return PartialView(myDate);
        }
    }
</code></pre>