hello, with great help from Sheco I was able to get the date month and day. Now my problem is I am trying to build and else if statement but I get this error
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/date.asp, line 17
else
here is what my code looks like
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/date.asp, line 17
else
here is what my code looks like
Code:
<%
dim x, y
x = Year(Now())
y = Month(Now())
If x = "2006" then response.Write("F")
else
if x = "2007" then response.Write("G")
else
if x = "2008" then response.Write("H")
else
if x = "2008" then response.Write("I")
else
if x = "2009" then response.Write("J")
else
if x = "2010" then response.Write("K")
and
if y = "1" then response.Write("A")
else
if y = "2" then response.write("B")
else
if y = "3" then response.write("C")
else
if y = "4" then response.write("D")
else
if y = "5" then response.write("E")
else
if y = "6" then response.write("F")
else
if y = "7" then response.write("G")
else
if y = "8" then response.write("H")
else
if y = "9" then response.write("I")
else
if y = "10" then response.write("J")
else
if y = "11" then response.write("K")
else
if y = "12" then response.write("L")
END IF
%>