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


Ciju
  •  Ciju
  • No customer Topic Starter
2015-09-18T10:09:47Z
Hi,
I want pass the last week number to a HTTP url request. Is there any way i can do this?
An example is: today is 18/09/2015. I need 37.
Thanks,
Ciju
Sponsor
Forum information
thomas
2015-09-18T12:01:10Z
Hi

If you always use current timestamp as starting point, you can use this: {MATH(Add|Integer|-1|{DATE(Week)}|)}.

ok. I had to edit this. It won't wont work for the first week in the year. You can either make a special case for that week, or use a .NET task:

http://stackoverflow.com...k-number-of-a-given-date 


Thomas
Ciju
  •  Ciju
  • No customer Topic Starter
2015-09-18T12:46:57Z
Yes, exactly. i am refering to first week scenario also.
Okay. so there is no direct way of achieving this, correct?
Also, i am new to vcron. can we do any case function there?
Ciju
  •  Ciju
  • No customer Topic Starter
2015-09-18T13:04:02Z
no, i like the .net one much better. Thank you for your help!
Scroll to Top