cancel
Showing results for 
Search instead for 
Did you mean: 

Create a date 7 days back in time

johwes
Level 4
Hi!

I need to calculate a date that is seven days back in time from todays date. 
I am fairly stuck. Anyone that can help?

Appreciate any help I can get.

------------------------------
Johanna Westlund
RPA manager
MAIK AS
/Norway
------------------------------
4 REPLIES 4

EricLiu
Level 5
AddDays(Now(), -7)

------------------------------
Eric Liu
RPA Developer
America/Toronto
------------------------------

VivekGoel
Level 10
DateAdd(2, -7, Today())
Or
AddDays(Today(),-7)

Both will work

------------------------------
Vivek Goel
RPA Architect
Asia/Singapore
+6594554364
https://www.rpatools.com/
------------------------------

Thank you! It works perfectly. It didn't occur to me to use AddDays and then use a minus in front of the number of days... Learn something new every day!

------------------------------
Johanna Westlund
RPA manager
MAIK AS
/Norway
------------------------------

Thanks! 🙂

------------------------------
Johanna Westlund
RPA manager
MAIK AS
/Norway
------------------------------