Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2010, 05:15 AM
baker_tony baker_tony is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Post Entering a date for yesterday in a web page

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...
Attached Files
File Type: atmn ireland2.atmn (8.6 KB, 13 views)
Reply With Quote
  #2 (permalink)  
Old 02-12-2010, 11:18 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

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.
Attached Files
File Type: atmn ireland2.atmn (9.5 KB, 3 views)
Reply With Quote
  #3 (permalink)  
Old 02-12-2010, 02:06 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Another option is to set the PCs system date to yesterday. Not always practical, but it'll work.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 03:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved