sas207
12-17-2012, 02:25 AM
Hi there,
I have used Jason's Date Input Calendar, and need a extra functrion for my form to work.
I have two calendar's, an arrival date and a departure date.
I need to count the number of days between the arrival date and the departure date.
Calendar's are setup as follows:
<td colspan="3">Arrival date:
<script type="text/javascript">// <![CDATA[
DateInput('orderdate1', true, 'DD-MON-YYYY')
// ]]></script>
</td>
<td colspan="3">Departure date:
<script type="text/javascript">// <![CDATA[
DateInput('orderdate2', true, 'DD-MON-YYYY')
// ]]></script>
</td>
Could you please advice how I can calculate the amount of days between the two dates then place the number of days into a textbox.
Thank you in advance :-)
I have used Jason's Date Input Calendar, and need a extra functrion for my form to work.
I have two calendar's, an arrival date and a departure date.
I need to count the number of days between the arrival date and the departure date.
Calendar's are setup as follows:
<td colspan="3">Arrival date:
<script type="text/javascript">// <![CDATA[
DateInput('orderdate1', true, 'DD-MON-YYYY')
// ]]></script>
</td>
<td colspan="3">Departure date:
<script type="text/javascript">// <![CDATA[
DateInput('orderdate2', true, 'DD-MON-YYYY')
// ]]></script>
</td>
Could you please advice how I can calculate the amount of days between the two dates then place the number of days into a textbox.
Thank you in advance :-)