Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Take the numeric value of yesterday's date
Topic Summary:
Created On: 09/29/2009 10:17 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 09/29/2009 10:17 PM
User is offline View Users Profile Print this message

Author Icon
kitomark
Journeyman (50-99)

Posts: 61
Joined: 03/13/2009

Hello again, I am looking to glean the numeric value of yesterday's date and paste it into a file.

So I read here how to glean yesterday's date: %Date -1% correct?

Now, let's say today is september 30 2009, how do I paste 29 into my script? I don't need all of the other values, just the number 29.

 

As usual, Thanks in advance!!!

 



 Category Survey
 09/30/2009 12:02 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Kitomark,
take %Day(Date-1)%

 Category Survey
AutoMate 6 version:
Windows version:


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
 07/07/2013 11:41 PM
User is offline View Users Profile Print this message

Author Icon
JanosPiskolti
n00b (>6 posts)

Posts: 3
Joined: 07/07/2013

Dear Jean,

 

Please help me. I use this formule: ccss.xout.%Day(Date())-1%

With this i get : ccss.xout.7

Witch formule are correct if I would get ccss.xout.07

 

Thanks your help!



 Category Survey
 07/08/2013 06:40 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Hi Janos,

The syntax should be ccss.xout.%Day(Date-1)%



 Category Survey
AutoMate 6 version:
Windows version:


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 07/09/2013 04:29 AM
User is offline View Users Profile Print this message

Author Icon
JanosPiskolti
n00b (>6 posts)

Posts: 3
Joined: 07/07/2013

Hi Leonard,

 

Isn't working. The message is same: ccss.xout.7 and i would like a get a sysdate format ( it is yyyy.mm.dd ) where a "dd" mean 07 and not simple 7.

 



 Category Survey
 07/09/2013 06:55 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Hi Janos,

I apologize. I misread your initial request. The syntax should be as follows:

ccss.xout.%format(date-1,"dd")%


 Category Survey
AutoMate 6 version:
Windows version:


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 07/10/2013 10:47 PM
User is offline View Users Profile Print this message

Author Icon
JanosPiskolti
n00b (>6 posts)

Posts: 3
Joined: 07/07/2013

Thank you Leonard!

It's work!



 Category Survey
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1334 guests browsing this forum, which makes a total of 1334 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog