Monday, December 5, 2011

using Microsoft.VisualBasic DateDiff() in your c# program

Code:
long age = Microsoft.VisualBasic.DateAndTime.DateDiff("yyyy",Convert.ToDateTime("1985-04-04"),DateTime.Now);