【C#-算法】根据生日自动计算年龄_DataTime 的 DateDiff 方法
dateTimePicker1.Value出生日期控件的值
long BirthDay = DateAndTime.DateDiff(DateInterval.Year, dateTimePicker1.Value, DateTime.Now, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1);
dateTimePicker1.Value出生日期控件的值
long BirthDay = DateAndTime.DateDiff(DateInterval.Year, dateTimePicker1.Value, DateTime.Now, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1);