Hello.. how can i remove x days or x weeks or x month from a DateTime.
I saw AddDays, AddMonths.. but i can't find how to substract a specific number of day/week or month from a date.
The only workaround a found is something like that:
System.DateTime sysDt = System.DateTime.Now()
sysDt = System.DateTime.FromOADate(Convert.ToDouble(sysDt.DayOfYear - 2));
I've not test well. and i want to know if it exist any easier way to do that.
Thanks for your help..