string startdate = DateTime.Now.ToString("dd/MM/yyyy");
using System; public class Program { public static void Main() { DateTime startDate = DateTime.Now; DateTime endDate = startDate.AddMonths(1); string format = "dd/MM/yyyy"; Console.WriteLine(endDate.ToString(format)); } }
string endDate = Convert.ToDateTime(startdate).AddMonths(1).ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)