![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Is it possible to get a two-digit number for the month, day, hour, minute, second system variables. For example, I would like to build today's date as "D20080227" in the format: "DYYYYMMDD", but what I get instead is: "D2008227". The same goes for the other fields I listed where less than 10 is a possiblity. Thanks. |
| |||
|
Hello, In that case you can insert 'If' command to check if $Day$ or $Month$ is less then 10 and inside 'If' use 'Variable Operation' command to append 0 to $Day$ or $Month$ . For your convenience, we have created one sample task (2DigitDayorMnth.atmn). Copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running this task create 2 variables namely, $UDay$ and $UMnth$ through Tools->Variable Manager. To create variable please follow below mentioned steps, 1. Go to Tools->Variable Manager in Automation Anywhere. 2. Click on “Add New Variable”. 3. In “Name” field, enter “UDay”. 4. In “Value” field enter any value say '0'. 5. Press “Save” 6. Press “Ok” 7. Similarly, create $UMnth$ variable. In addition, you can also configure format of $Date$ system variable from Tools->Variable Manager->System Variable->Date. Click on '...' button and select format from list. Hope that helps. |
| |||
|
Hello, Using Run Script command, . You can run other VB Scripts (*.vbs) or JScripts (*.js) from a task. . You can also pass parameters to your scripts. . There is also an option to specify the return value in your scripts. |
![]() |
| Thread Tools | |
| Display Modes | |
| |