Hi,
I like to use an alternative date notation. An example here:
Date: 27 october 2003 -> 20031027
This date notation is a lot easier to handle because it's a number. I wrote a funcion to convert a normal date to this notation, but I can't call this function. The function is:
This function is declared in my global.asa. I call this function in my Session_OnStart with the following line:
I get an error: Types do not match
Does anyone have a clue what I'm doing wrong? I'm pretty new in this whole date managing stuff and it's not really simple.
Thanks,
Steven
I like to use an alternative date notation. An example here:
Date: 27 october 2003 -> 20031027
This date notation is a lot easier to handle because it's a number. I wrote a funcion to convert a normal date to this notation, but I can't call this function. The function is:
Code:
Sub converteerDatumNumerisch(date)
dNumTemp = Year(date)
If Len(Month(date)) = 1 Then
dNumTemp = dNumTemp & "0" & Month(date)
Else
dNumTemp = dNumTemp & Month(date)
End If
If Len(Day(date)) = 1 Then
dNumTemp = dNumTemp & "0" & Day(date)
Else
dNumTemp = dNumTemp & Day(date)
End If
Application("convertedDate") = dNumTemp
End Sub
This function is declared in my global.asa. I call this function in my Session_OnStart with the following line:
Code:
converteerDatumNumerisch(Date())
I get an error: Types do not match
Does anyone have a clue what I'm doing wrong? I'm pretty new in this whole date managing stuff and it's not really simple.
Thanks,
Steven