Help with entering URL with date variable

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
tsbob
Posts: 1
Joined: Wed Dec 20, 2017 5:54 am

Help with entering URL with date variable

Post by tsbob » Wed Dec 20, 2017 6:14 am

Hi all,

i'm just begin with iMacros (using internet explorer addon) and trying to make a script where the first command is to go to a specific url witch include a time variable like this:

http://www.XXX.com/XXX/Index?startDate="Last Sunday Date"&endDate="Today's Date"

I would like the macros to find and add the last sunday's and today's date in this URL, does somebody have any idea how to do that ?

Thanks
serbeer
Posts: 44
Joined: Fri Sep 11, 2015 5:36 am

Re: Help with entering URL with date variable

Post by serbeer » Wed Dec 20, 2017 8:38 pm

tsbob wrote:Hi all,

i'm just begin with iMacros (using internet explorer addon) and trying to make a script where the first command is to go to a specific url witch include a time variable like this:

http://www.XXX.com/XXX/Index?startDate="Last Sunday Date"&endDate="Today's Date"

I would like the macros to find and add the last sunday's and today's date in this URL, does somebody have any idea how to do that ?

Thanks
Of course, without FCI, it is hard to advice, but if you use Firefox, I'd pesonally would use javascript .js macro (instead of .iim) that would generate the URL statement to run and use free javascript Moment library to get the dates you are interested in for the statement.
Post Reply