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-13-2008, 01:29 PM
dc@abswebb.net dc@abswebb.net is offline
Junior Member
 
Join Date: Feb 2008
Posts: 1
Default Date variables how to

I have a task that requires the filling in of variable dates. I need to fill in a date field in a program that runs a report. I want to run this task once per month on the 5th day of the month, and I want the begining date field in the program to be filled in with the first day of last month, then the ending date field in the program to be filled in with the last day of last month.

Any help please send suggestion to dc@abswebb.net

Thanks,
Reply With Quote
  #2 (permalink)  
Old 02-14-2008, 04:22 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Using Automation Anywhere 4.0, you can perform this task very well. Automation Anywhere provides various System variables that can be used to get the current day, month, year, date and time. They are $Date$, $Year$, $Month$, $Day$, $Hour$, $Minute$ and $Second$. You can use the combination of any of the above variables to get date format of your choice. In addition, you can perform calculations on them to get start and end date of last month. You can use Variable Operation command to work with the variable assignment.

For your convenience, we have attached sample task (GetStart&EndDate4LastMonth.atmn). Copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
Before running this task, you will have to create three variables namely, StartDate, EndDate and LastDay. Please follow below mentioned steps to create a variable “LastDay”.

1. Go to Tools->Variable Manager in Automation Anywhere.

2. Click on “Add New Variable”.

3. In “Name” field, enter “LastDay”.

4. In “Value” field enter any value say 'a'.

5. Press “Save”

6. Press “Ok” in Variable Manager window.

7. Similarly, create other two variables, StartDate and EndDate.

When you will run this task, it will show you start and end date of last month in message box.

Hope that helps.
Attached Files
File Type: atmn GetStart&EndDate4LastMonth.atmn (8.3 KB, 12 views)
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 02:37 PM.


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