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 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")
Regards
Gokul
It is working thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.