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.
|