Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dateadd question

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
Why does the server think this is a sub?
Code:
<%
	mydate=date
	dateadd(&quot;D&quot;,1,mydate)
	Response.Write mydate
%>
Cannot use parentheses when calling a Sub
/dtest.asp, line 4, column 21
dateadd(&quot;D&quot;,1,mydate)

I need fresh eyes to look at this.
 
I think it should look like this
<%
mydate=date
mydate=DateAdd(&quot;D&quot;,1,mydate)
Response.Write mydate
%>
provide tools to let people become their best.
 
yes, i think my brain was just napping
 
I didn't see your second until it was too late. provide tools to let people become their best.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top