Have a function to get the current date, and when I echo it, it returns with a decimal number. I would like it to return with a date if possible.
<tr>
<td>storeEval</td>
<td>javascript{ ((new Date()).getMonth()+1)+'/'+(new Date()).getDate()+'/'+(new Date()).getFullYear()}</td>
<td>currentdate</td>
</tr>
<tr>
<td>echo</td>
<td>${currentdate}</td>
<td></td>
</tr>
And the results:
[info] Executing: |storeEval | javascript{ ((new Date()).getMonth()+1)+'/'+(new Date()).getDate()+'/'+(new Date()).getFullYear().toString()} | currentdate |
[info] script is: 11/17/2016
[info] Executing: |echo | ${currentdate} | |
[info] echo: 0.00032096171802054155