title: How to Pass DateTimePicker Value to Controller from VIew?
body: <p>I want to transfer datetimepicker value to my controller. I am able to transfer value by regular:</p>
  
  <pre><code>     //PassDate Value While Calling Main Controller.
      vrdCurv = "@Url.Action("GetOutgoingMessage", "OutGoingMessages", new { ABC = "asdnfsdf" })";
  </code></pre>
  
  <p>But not able to get result from the below code.</p>
  
  <pre><code>  //******Start of Date Pickers************
      var datepickerFrom = $("#dateFromPicker").kendoDatePicker({
          format: "dd/MM/yyyy",
          change: function () {
              datepickerTo.min(datepickerFrom.value());
          },
      }).data("kendoDatePicker");
  
    //PassDate Value While Calling Main Controller.
      vrdCurv = "@Url.Action("GetOutgoingMessage", "OutGoingMessages", new { dateTimePicker.value })";
  </code></pre>
  
  <p>//Controller Code:</p>
  
  <pre><code>     [HttpGet]
      public JsonResult GetOutgoingMessage(string ABC)
      {
      var a = abc;
  
      }
  </code></pre>
  
  <p>I also tried to pass normal variable value as below code that is also not working:</p>
  
  <pre><code>   [HttpGet]
      public JsonResult GetOutgoingMessage(DateTime? abc)
      {
          using (var db = SiteUtil.NewDb)
          {
  
               TempData["msg"] = abc;
            }
      }
  </code></pre>
  
  <p>//Jscript:</p>
  
  <pre><code>    var fromDate = null;
      var toDate = null;
  
      //Inilialise date variable.
  
      fromDate = '2015-07-10';
      toDate = '2015-07-10';
  
      var dataSourceOutMessage = new kendo.data.DataSource({
              transport: {
              read: {
                  url: "@Url.Action("GetOutgoingMessage", "OutGoingMessages")",
                 dataType: 'json',
                 date:{"fromdate" : fromdate}
          }
      },
          schema: {
        model: {
        fields:
       {
       Id: { type: "String" },
       MsgType: { type: "String" },
       Subject: { type: "String" },
       CreatedOn: { type: "String" },
      ProcessedOn: {type: "date"}
     }
     }
     },
     pageSize: 20
     });
  </code></pre>