How to make an automatically calculate of how many day from what user pick a date using datepicker
and minus with the current date.
Let's say i have choosen my date using datepicker
and automatically calculate for me how many days from date what i pick until todayDateTime = Now()
<style>
table,tr ,td {border:solid black 1px;}
</style>
<table>
<!--- Title--->
<tr>
<th colspan="2">Duration</th>
</tr>
<tr>
<th>From</th>
<th>To</th>
</tr>
<!--- Popup calendar Duration From --->
<tr><td><center>
<input class="center" type="text" name="Dur_from" size="8"b required="yes">
<a href="javascript:showCal('Calendar1')"><img align="right" src="calendar_menu.gif" alt="Select a date" border="0"></a>
</center></td>
<!--- Popup calendar Duration From end --->
<!--- Popup calendar Duration To --->
<td><center>
<input class="center" type="text" name="Dur_to" size="8" required="yes">
<a href="javascript:showCal('Calendar2')"><img align="right" src="calendar_menu.gif" alt="Select a date" border="0"></a>
</center>
</td>
<!--- Popup calendar Duration To end --->
</tr>
</table>