DateTime.Today;~~Bonnie
>>DateTime myDateTime = new DateTime(2005, 1, 24); >>MessageBox.Show(myDateTime.Year.ToString()); >>>>If you wanted the year without century then you could go a step further and use the String.Remove method.
>>DateTime myDateTime = new DateTime(2005, 1, 24); >>MessageBox.Show(myDateTime.Year.ToString().Remove(0, 2)); >>>>If you are dealing with a string and not a DateTime structure then you can use the String's SubString method.