Is it better to use DateValue() to check to see if a date variable has been set?
Or perhaps to compare it with date variable that you know has not been set?
Or is there some better way?
Code:
Function DateIsSet(dtMyDate As Date) as Boolean
If (DateValue(dtMyDate) <> 0) Then DateIsSet= True
End Function
Or perhaps to compare it with date variable that you know has not been set?
Code:
Function DateIsSet(dtMyDate As Date) as Boolean
Dim dtFake as Date
If (dtMyDate <> dtFake) Then DateIsSet= True
End Function
Or is there some better way?