Hello
I have the following script which I use for the date on my online page:
<%
Response.Write
Response.Write WriteDate (Date)
Function Suffix(number)
SELECT CASE Number
CASE 1
temp = "st"
CASE 2
temp = "nd"
case 3
temp = "rd"
CASE ELSE
temp = "th"
END SELECT
Suffix = number & temp
End Function
Function WriteDate(theDate)
WriteDate = Suffix(Day(theDate)) & " " & Monthname(Month(theDate)) & " " & Year(theDate)
End Function
Response.Write
%>
I have noticed today, though, that depite the 'rd' in the code above, the date is showing as 23th.
Yet I am unsure about what might be wrong.
Any advice or suggestions would be welcome.
Thanks.
Steve
I have the following script which I use for the date on my online page:
<%
Response.Write
Response.Write WriteDate (Date)
Function Suffix(number)
SELECT CASE Number
CASE 1
temp = "st"
CASE 2
temp = "nd"
case 3
temp = "rd"
CASE ELSE
temp = "th"
END SELECT
Suffix = number & temp
End Function
Function WriteDate(theDate)
WriteDate = Suffix(Day(theDate)) & " " & Monthname(Month(theDate)) & " " & Year(theDate)
End Function
Response.Write
%>
I have noticed today, though, that depite the 'rd' in the code above, the date is showing as 23th.
Yet I am unsure about what might be wrong.
Any advice or suggestions would be welcome.
Thanks.
Steve