C# How to determine if a date is within 180 days of now
c#, date
Solution
DateTime.Now.Subtract(dt1).Days <= 180
Problem
How can I determine if a date is within 180 days? I've been playing with DateTime.Compare below and using date1 +180 days (date1 is 28th August 2009 13:12) ``` DateTime.Compare(**date1**.AddDays(180), now) ``` Is this correct? Thanks Jamie