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 10-07-2009, 12:48 PM
sterlingmi sterlingmi is offline
Junior Member
 
Join Date: Sep 2009
Posts: 2
Default Setting Variable From Clipboard (Date&Time)

I am assigning variables from the contents of the clipboard.
One of these variables I am creating is $DueDate$
Below is an example of the clipboard

Due: 10/19/2009 9:00:00 PM

Currently I am using 10 characters after the "Due: ", trimming spaces and returns.

The problem is, if the Month and Day are both single digits, i.e.

Due 1/1/2010 9:00:00 PM

How can I go about getting the correct Date each time, regardless if it is 8 or 10 digits. MM/DD/YYYY


Please Advise.. thanks!
Reply With Quote
  #2 (permalink)  
Old 10-08-2009, 04:26 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What you can do is,

. Use String Manipulation command to extract the date from $clipboard$.
. In String Manipulation command, use 'Due:' as Before String, space ' ' as after string and occurrence of space, second i.e. 2.

That way the string between 'Due:' and the second space i.e. the entire date would be extracted.

We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Hope that helps.
Attached Files
File Type: atmn Sample.atmn (565 Bytes, 11 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 04:18 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