Find Date 7 days from current date

Hi all,

I would like to find the date which 7 days before the current day.

Example:
today is 1/6/2023
i want the date 12/30/2023

Thanking you,

Hi @Yugal_Raju
If it is in Datetime format
DateTime = today.AddDays(-7)

HI @Yugal_Raju

Try with this expression

DateTime.ParseExact(StringInput.ToString,"MM/dd/yyyy",System.Globalization.CultureInfo.InvariantCulture).Adddays(-7).ToString("dd/MM/yyyy")

image

Regards
Gokul

HI @Yugal_Raju

Checkout this expresion

Now.AddDays(-7).ToString("dd/MM/yyyy")

Regards
Sudharsan

It is working thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.