Reputation: 3
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
Reputation: 720
Dim dt As New NotesDateTime("")
dt.SetNow
dt.SetAnyTime
dt.AdjustDay -30
Print Format(dt.LSLocalTime, "YYYYMMDD")
Upvotes: 1