Adding 6 Months to the current date
Posted: Mon Feb 15, 2016 3:38 pm
Hi I am currently evaluating Ranorex. I have downloaded the Trial Version. I have recorded a test and in the test I have to add Departure Date and Return Date. I want to automatically calculate the Departure date by adding 180 days to current date and for the Return date add 182 Days to current Date. Can you please let me know how best to achieve this.
Departure Date:
<input name="ctl00$cphM$txtDepartureDate" type="text" value="16/02/2016" maxlength="10" id="ctl00_cphM_txtDepartureDate" autocomplete="off" onchange="DateChanged(this,0)" onkeydown="return DateKeypressCheck(event);" style="font-family:Arial;width:90px;" class="hasDatepicker">
Return Date:
<input name="ctl00$cphM$txtReturnDate" type="text" value="16/02/2016" maxlength="10" id="ctl00_cphM_txtReturnDate" autocomplete="off" onchange="DateChanged(this,1)" onkeydown="return DateKeypressCheck(event);" style="font-family:Arial;width:90px;" class="hasDatepicker">
The Ranorex Version is 5.4.4.26486
Thanks
Departure Date:
<input name="ctl00$cphM$txtDepartureDate" type="text" value="16/02/2016" maxlength="10" id="ctl00_cphM_txtDepartureDate" autocomplete="off" onchange="DateChanged(this,0)" onkeydown="return DateKeypressCheck(event);" style="font-family:Arial;width:90px;" class="hasDatepicker">
Return Date:
<input name="ctl00$cphM$txtReturnDate" type="text" value="16/02/2016" maxlength="10" id="ctl00_cphM_txtReturnDate" autocomplete="off" onchange="DateChanged(this,1)" onkeydown="return DateKeypressCheck(event);" style="font-family:Arial;width:90px;" class="hasDatepicker">
The Ranorex Version is 5.4.4.26486
Thanks