Intelligent Automation & Macro Software  

Go Back   Tethys Solutions 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 08-19-2008, 03:23 PM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default How to get previous day's date

Hi
I want to get previous day's date in one variable.
By doing $date$ -1 , the result given is "19-Aug-2008 - 1"

Thanking all in advance.
Reply With Quote
  #2 (permalink)  
Old 08-19-2008, 10:41 PM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Can you please tell us, are you using $date$ -1 with 'Variable Operation' command command?

For your reference we have attached the task that prints yesterdays date in a notepad using Variable Operation command.

Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Hope that helps.
Attached Files
File Type: atmn Get_Date.atmn (8.4 KB, 3 views)
Reply With Quote
  #3 (permalink)  
Old 08-20-2008, 09:48 AM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default

Thanks a lot.
I was doing variable operation also but using one variable which was initialised earlier. I took new variable and currently it is working.

Is there a way to format this value to say "yyyymondd"
Reply With Quote
  #4 (permalink)  
Old 08-20-2008, 01:05 PM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

You can configure format of Date variable from Tools->Variable Manager->System Variable->Date. Click on '...' button and select format from list.

Hope that helps.
Reply With Quote
  #5 (permalink)  
Old 08-21-2008, 04:57 PM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default

Thanks a lot, but this is taking predefined formats.

Can i define one format and use ? like i mentioned above "yyyy-mmm-dd"
"yyyy-mm-dd" is there but i want to use month name instead of month number.
Reply With Quote
  #6 (permalink)  
Old 08-22-2008, 12:39 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

In that case, you can create a VB script to get desired date format and then call that script from the task using 'Run Script' command.
For your convenience, we have created a VB script for you, which will take yesterday's date returned by 'Variable Operation' command as a parameter and will return that date in 'yyyy-mmm-dd' format.

Please copy attached task (.atmn file) under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Copy FormatDate.vbs under C:\.

Hope that helps.
Attached Files
File Type: zip YDate.zip (962 Bytes, 7 views)
Reply With Quote
  #7 (permalink)  
Old 08-22-2008, 11:19 AM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default

Thanks a lot
Reply With Quote
  #8 (permalink)  
Old 10-31-2008, 11:01 AM
rlaliberte rlaliberte is online now
Junior Member
 
Join Date: Jun 2007
Posts: 24
Default

is this date feature new? This is something I need!

Do I need to upgrade to get this?
Reply With Quote
  #9 (permalink)  
Old 10-31-2008, 11:31 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

Can you please tell us the version of Automation Anywhere you have? You can check the version from Help->About Automation Anywhere.
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

vB 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 01:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved