Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


r.gauci
2008-12-15T19:12:45Z
I have created a variable which shows the name of the file with the date ..

PokerArena_{DATE(Month.Name)}_{DATEFORMAT(dddd)}_{DATENOWADD(Days,-1,dd)}

The problem is that the if the date is between the 1st and the 9th this variable will give me PokerArena_December_Monday_03..

On the other hand the file' name will be PokerArena_December_Monday_3...

Is there a way to remove the 0 from the date??
Sponsor
Forum information
Support
2008-12-15T19:36:14Z
You can solve it this way:

{STRING(Replace,{DATENOWADD(Days,-10,#d)},#,)}

For some reason, .NET behaves differently when using another character, like # in the formatting. This character can then be replaced with the Replace function.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2008-12-15T19:49:24Z
Found a better way. Use this instead: {DATENOWADD(Days,-10,%d)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
r.gauci
2008-12-16T10:37:01Z
Thanks a lot it worked perfectly
r.gauci
2008-12-16T11:44:33Z
Hi I have another problem...

I am getting the file of the previous date... What can i do for the 1st of the month As on the first of the month i have to get the file of the previous month
Support
2008-12-16T13:53:36Z
You want to get the previous month? {DATENOWADD(Months,-1,%M)}

You have all this information in the Variables window.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
r.gauci
2008-12-16T13:59:26Z
I know that you have to do that to get the previous month but if i get the file from the FTP everyday... onlly on the first day of the month do i need to get the pervious month as i am getting the file of the day before... Is there a way that i can do an if statement to check if it is the first day of the month??? THanks again for all the help you are giving us... You are really helpful!!!!! Thanks again :)
Support
2008-12-16T23:21:27Z
Currently no way. You need to write your own program that checks this and run this as a Task and check the output of it.

What we will add later is a Variable Condition where can compare Variables against certain values.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top