DateTime date1 = new DateTime(2021, 11, 15, 10, 30, 0); DateTime date2 = date1.AddMinutes(45); Console.WriteLine(date1); // Output: 11/15/2021 10:30:00 AM Console.WriteLine(date2); // Output: 11/15/2021 11:15:00 AMIn this example, we are creating a new DateTime object representing November 15th, 2021 at 10:30 AM and then adding 45 minutes to it using the AddMinutes method. The resulting DateTime object, date2, represents 11:15 AM on the same day. The DateTime.AddMinutes method is a member of the System.DateTime structure in the .NET Framework Class Library.