Ad Widget

Collapse

date -1 day and -30 days needed in a macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaidukas
    Junior Member
    • Jul 2013
    • 12

    #1

    date -1 day and -30 days needed in a macro

    Hello,

    I'm monitoring a web site and some of the pages need a post with some parameters that contain a date. Specificaly (yesderday) and (30 days ago).

    Here is an example of what is posted:

    start=Mon Sep 16 2013 11%3A23%3A07 GMT-0400 (Eastern Standard Time)
    end=Wed Oct 16 2013 11%3A23%3A07 GMT-0400 (Eastern Standard Time)

    I was wondering if there is, or if I could create something like:

    start={date -1}
    end={date -30}

    Also, I tested and the format: 'yyyy/mm/dd' seems to work.

    Thanks,

    -Glen
  • stevereaver
    Junior Member
    • Aug 2018
    • 17

    #2
    I know this is a really old post but I found a solution for this and will write it here in case anyone searches for this.

    Firstly I set two user macros for the START and END dates, using the system DATE macro

    {$DATE_START} => {DATE}+50
    {$DATA_END} => {DATE}+51

    Then in your XML you can use those macros like this;

    Code:
    <ns0:StayDateRange Start="{$DATE_START}" End="{$DATE_END}"/>
    The only indication that I currently have that it's working is that it is getting 200 response, so I assume that it is working.




    Comment

    Working...