How to get the previous week of the actual date

Hello everyone,

I’d like to ask if anyone is aware of a simple solution to get the previos week of the actual date.

For example, today is 23/10/2018 and I need to get the date menus 7 days, the result will be 16/10/2018.

Any ideas?

Now I got the current day but I need the calculation of menus 7 days.



Just do an Assign with date.AddDays(-7).
The date is your current date or any date that u want