title: Set value obtained from javascript code in an object
body: <p>I have a model named "AdvancedSearchViewModel" in which I am setting few values using Form.post method from view page but the same time I have to send one more value in the same model which is being obtained from script.
  In given code I have to set "datevalue" in "AdvancedSearchViewModel" model.</p>
  
  <pre><code>var createDate = $('#ModifiedDate').val();
      createDate = createDate.toLowerCase();
      var sd = new moment("february 26, 2014");
      var regex = /(\d+)/g;
      var t = dateTime(createDate);
    var datevalue=sd.subtract(t, createDate.match(regex));
  </code></pre>