【C#-算法】根据生日自动计算年龄_DataTime 的 DateDiff 方法

dateTimePicker1.Value出生日期控件的值

long BirthDay = DateAndTime.DateDiff(DateInterval.Year, dateTimePicker1.Value, DateTime.Now, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1);

posted @ 2016-03-23 09:59  发明创造小能手  阅读(689)  评论(0编辑  收藏  举报
levels of contents