lior03
01-29-2007, 05:26 AM
helo
i need to create a udf that will calculate how many days passed between
09/01/1939 and a given date
Function ww2(d As Date) As Integer
If d < 1 / 9 / 1939 Or d > 8 / 9 / 1945 Then
d = 0
Else
ww2 = d - DateSerial(1939 / 9 / 1)
End If
End Function
please help
i need to create a udf that will calculate how many days passed between
09/01/1939 and a given date
Function ww2(d As Date) As Integer
If d < 1 / 9 / 1939 Or d > 8 / 9 / 1945 Then
d = 0
Else
ww2 = d - DateSerial(1939 / 9 / 1)
End If
End Function
please help