Hi Tim,
Regarding on the gettting current year code, I've created a test asp page
and run it. It seems the code can execute correctly. Here is a complete
test page I used:
===============================
<html xmlns="
http://www.w3.org/1999/xhtml">
<body>
<%
Dim thisYear, thisMonth, thisDay
currDate = Date()
thisYear = Year(currDate)
thisMonth = Month(currDate)
thisDay = Day(currDate)
Response.Write("<br/>This Year: " & thisYear & ", This Month: " & thisMonth
& ", This Day: " & thisDay)
currDate = Now
thisYear = Year(currDate)
thisMonth = Month(currDate)
thisDay = Day(currDate)
Response.Write("<br/>This Year: " & thisYear & ", This Month: " & thisMonth
& ", This Day: " & thisDay)
%>
</body>
</html>
====================================
As for the problem you encounterd, have you used any other server-side
extension that may cause the problem? For example, is the page an ASP.NET
page or intercepted by ASP.NET runtime that cause the error?
If there is anything I missed, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
--------------------