What was the date 180 days ago?

c#, date

Solution

DateTime oneEightyAgo = DateTime.Today.AddDays(-180);

Problem

How would I get the date 180 days ago using C#?

Original source