Adds a specified number of years to the DateTimeOffset object.
using System; public class DateArithmetic { public static void Main() { int minimumAge = 16; DateTimeOffset dateToday = DateTimeOffset.Now; DateTimeOffset latestBirthday = dateToday.AddYears(-1 * minimumAge); Console.WriteLine("{0:d}.", latestBirthday); } }