date variable question

Discuss RoboTask here
Post Reply
spotsphill
Posts: 9
Joined: Tue Nov 25, 2008 12:25 pm
Location: United States
Contact:

date variable question

Post by spotsphill »

I have to run a web crawler program everyday. I have to
enter two dates:

Start sweep: 2008-01-31 <---- yesterday's date
End sweep: 2008-02-01   <---- today's date {Year}-
{MonthNo}-{Day}

My question is, what variable do I have to use so that
Robotask understands that we are going back to the
previous month. {Year}-{MonthNo}-{IncDays(-1)} doesn't
work, because it gives me 2008-02-31.

Please help!
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

date variable question

Post by Oleg »

In this case you have to use:
{YearIncDays(-1)}-{MonthIncDays(-1)}-{IncDays(-1)}

Also if you want to get the date in current date format you may use {DateIncDays(-1)}
Post Reply