Function Twenty_Ninth_Date()
On Error GoTo Err_IsLeapYear
Dim dteTemp As Date
Dim IsLeapYear As Boolean
dteTemp = DateSerial(Year(Date), 2, 29)
If Day(dteTemp) = 29 Then IsLeapYear = True
Err_IsLeapYear:
If Month(Date) <> 2 Or IsLeapYear = True Then
Twenty_Ninth_Date = DateSerial(Year(Date), Month(Date), 29)
End If
End Function