looking for way to get yesterday's day

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
DTEOH
Newbie
Posts: 1
Joined: Tue Dec 11, 2007 2:54 pm

looking for way to get yesterday's day

Post by DTEOH » Tue Dec 11, 2007 3:00 pm

Hi

I'm looking for advice of getting the day of the previous date.

Example,
DAY>THIS_DAY ----------> gives THIS_DAY = 11

How can I get another Variable that carries YESTERDAY = 10?

THANK YOU.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Dec 11, 2007 3:07 pm

Like this:

//These two lines required at top of script if you don't
//already have a VBSTART..VBEND Block
VBSTART
VBEND

//get day of month of yesterday's date
VBEval>Day(Date-1),yesterday
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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