public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine("Age: " + GetAgeInString("12/14/2012"));
public static string GetAgeInString(string value)
DateTime today = DateTime.Today;
DateTime birthDate = DateTime.Parse((string)value);
int months = today.Month - birthDate.Month;
int years = today.Year - birthDate.Year;
if (today.Day < birthDate.Day)
return string.Format("{0}Y {1}M", years, months);