Yeasterdays Date

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
transolut
Newbie
Posts: 14
Joined: Wed May 19, 2004 2:00 pm
Location: Des Moines, IA USA

Yeasterdays Date

Post by transolut » Thu May 27, 2004 2:25 pm

I am trying to find a way to easily calculate yesterdays date. The VB function of DateAdd seemed perfect, but I am not able to get it to work.


VBEval>DateAdd("d",-1, "27-May-04",lastdate
Message>lastdate



Is DateAdd supported? Am I doing something wrong? Is there an easier way?

Thanks!
Mike Miller
Transolut

User avatar
transolut
Newbie
Posts: 14
Joined: Wed May 19, 2004 2:00 pm
Location: Des Moines, IA USA

Correction for my poor typing

Post by transolut » Thu May 27, 2004 2:28 pm

Code in my posting should have read:

VBEval>DateAdd("d",-1, "27-May-04"),lastdate
Message>lastdate
Mike Miller
Transolut

Lumumba

Post by Lumumba » Thu May 27, 2004 2:28 pm

GetDate>CurrentDate
Sub>CurrentDate, 1
MessageModal>%CurrentDate%

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