user3328120
user3328120

Reputation: 3

In lotus notes script i need complete logic for subtracting thirty days from current date

In lotus notes script i need complete logic for subtracting thirty days from current date in CCYYMMDD format and I want to print this date using print statement so that I would see the result. I need full version of the lotus notes script including definition and data type of all variables used. I tried using many ways either I get empty results or data type mismatch while printing. I need your help please. Thank you

Upvotes: 0

Views: 87

Answers (1)

Andre Guirard
Andre Guirard

Reputation: 720

Dim dt As New NotesDateTime("")
dt.SetNow
dt.SetAnyTime
dt.AdjustDay -30
Print Format(dt.LSLocalTime, "YYYYMMDD")

Upvotes: 1

Related Questions