Getting yesterday date

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
kennie_n2000
Newbie
Posts: 4
Joined: Thu Feb 01, 2007 6:25 pm

Getting yesterday date

Post by kennie_n2000 » Sat Feb 10, 2007 12:09 am

I try to get the yesterday date, i got the thing work but the format off 1 digit

example: today date is 20070209 and i want the result 20070208
but i got 2007028 (missing a Zero infront of the 8) any help much appreciated

Day>the_day
month>the_month
Year>the_year
Let>the_day=the_day-1
MessageModal>%the_year%%the_month%%the_day%

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Sat Feb 10, 2007 12:56 am

Your code will not work on the 1st of the month, one of the examples in this thread should work for you.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts