Page 1 of 1

date variable question

Posted: Wed Dec 10, 2008 6:46 pm
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!

date variable question

Posted: Wed Dec 10, 2008 11:12 pm
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)}