![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi, I've got a script (attached) which opens a web page, enters in a date and downloads a file. The date/text entered is "09/02/2010", which is yesterday. What I want to do, is automate entering in the date for YESTERDAY. How can I do this? I can insert variables for the current day, i.e. $Day$, but what I need is $Day$-1 or something... |
| |||
|
Hello, To use yesterday's date as a variable please follow below mentioned steps. 1) Open the Variable Manager. 2) Click on 'Add' button. 3) Set the variable type as 'Value', specify a name for the variable lets say 'yesterday' and enter 1 as a value. ( This shall be the temporary value.) 4) Now open the Task Editor from Tools->Task Editor. 5) Double click on 'Variable Operations' 6) On the left hand side of the 'equal to' sign, press F2 and select the variable that you created from the list. 7) On the right hand side of the 'equal to' sign, press F2 and select the system variable date and click insert. 8) Type '-1' after $Date$. 9) Click 'Save' button. You can also configure format of Date variable from Variable Manager->Show System Variable->Date. Click on '...' button and select format from list. We have amended the task for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |