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 01-31-2012, 05:58 AM
stephen_rickett stephen_rickett is offline
Junior Member
 
Join Date: Dec 2011
Posts: 10
Default Changing / to - in variable for date format

I have my $date$ system variable set to dd/mm/yyyy format however I want to also use the variable to create a file name, however you cant have / in file names so I want to subsitute it for a dash - so it would be dd-mm-yyyy. I'm not sure how best to go about it, if its atall possible?

I have also tried to use $day$-$Month$-$year$ however if the day or month has a leading 0 then it removes it... if someone can solve this dropping of the leading 0 issue then I could use this method


Cheers
Reply With Quote
  #2 (permalink)  
Old 01-31-2012, 06:10 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Stephen,

Attached is a sample which removes the '/' from the Date and replaces it with the '-'

Download and Save the task under 'My tasks' folder. To locate the path of the 'My Tasks' folder, right click on any of the existing tasks and select the 'Locate on Disk' option.

Hope this helps.
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:42 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