DateTime currentDate = DateTime.Now; DateTime futureDate = currentDate.AddMonths(3); Console.WriteLine(futureDate);
DateTime startDate = new DateTime(2022, 1, 1); DateTime futureDate = startDate.AddMonths(6);The package library that contains the Date AddMonths method in C# is the System.DateTime package.