yesterdays date?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
demonthrall
Newbie
Posts: 3
Joined: Mon Nov 24, 2008 8:50 pm

yesterdays date?

Post by demonthrall » Mon Nov 24, 2008 8:52 pm

Quick question, I have searched for a while.

How can I get yesterdays date to be entered in a form?

so far:

getdate>date
send>date

that puts todays date into the field. How do you make it do yesterdays? Thanks I appreciate it a lot!

User avatar
JRL
Automation Wizard
Posts: 3518
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Nov 24, 2008 9:03 pm

Code: Select all

GetDate>date
Sub>date,1

demonthrall
Newbie
Posts: 3
Joined: Mon Nov 24, 2008 8:50 pm

Post by demonthrall » Mon Nov 24, 2008 9:05 pm

worked like a charm!

three cheers for vets that comb the beginners section. THANKS!

User avatar
JRL
Automation Wizard
Posts: 3518
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Nov 24, 2008 9:13 pm

For posterity you can also use VBScript.

Code: Select all

VBSTART
VBEND
VBEval>Date()-1,yesterday

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