if (textDueDate.Contains("May")) { DateTime dt = new DateTime(); clndDueDate.SetDate(dt.AddMonths(05)); clndDueDate.Update(); MessageBox.Show("Inside May"); } else { }
DateTime dt = new DateTime(2001, 01, 01); //Works with full date DateTime dt = new DateTime(null, 01, null); //Not working ;(