title: How to print Model Value of ASP.NET MVC in alert?
body: <p>I have a MVC Code which seperates DateTime into two input fields and a button which save changes</p>
  <pre><code>@model WorkOrderDetailsViewModel
  &lt;div class=&quot;col-sm-3&quot;&gt;
      &lt;span&gt;Start Date:@Html.TextBoxFor(m =&gt; m.StartDateTime, new { @class = &quot;form-control&quot;, id=&quot;StartDate&quot;, @placeholder = &quot;MM/DD/YYYY&quot; })&lt;/span&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-sm-3&quot;&gt;
      &lt;span&gt;Start Time:@Html.TextBoxFor(m =&gt; m.StartDateTime, new { @class = &quot;form-control&quot;, id=&quot;StartTime&quot;, @placeholder = &quot;MM/DD/YYYY&quot; })&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div class=&quot;row&quot;&gt;
      &lt;button id=&quot;changeDate&quot; class=&quot;btn btn-sm btn-primary pull-right&quot;&gt;Save Changes&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Now How can I combine those two dates and time and show them on alert on clicking on save changes using jquery. My jquery Code is :-</p>
  <pre><code>$(&quot;#StartDate&quot;).datetimepicker({
      format: &quot;L&quot;,
      minDate: moment()
  }).data(&quot;DateTimePicker&quot;).date(moment.unix(getUrlParameter(&quot;time&quot;)).utc());
  
  $(&quot;#StartTime&quot;).datetimepicker({
      format: &quot;hh:mm A&quot;
  }).data(&quot;DateTimePicker&quot;).date(moment.unix(getUrlParameter(&quot;time&quot;)).utc());
  
  
  $(&quot;#changeDate&quot;).click(function () {
      alert(); // I nees to show the combined value of date and time
  });
  
  
  </code></pre>