Dim dt As Date = dr("生日")
if dt.month =2 andalso dt.day=29 andalso Date.IsLeapYear(date.today.year)=false then '特殊日期
else
Dim dt1 As New Date(Date.Today.Year,dt.Month,dt.Day)
Dim dt2 As New Date(Date.Today.AddDays(n).Year,dt.Month,dt.Day)
If (dt1 >= Date.Today AndAlso dt1 < Date.Today.AddDays(n)) OrElse (dt2 >= Date.Today AndAlso dt2 < Date.Today.AddDays(n)) Then
nms = nms & ",'" & dr("身份证号") & "'"
End If