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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

from date1 to date2

Status
Not open for further replies.

mako

Programmer
Apr 6, 2000
11
MY

i keep getting this error :

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "9/4/2000"]'


how do i correct this code? tdat1 and tdat2 are date values.
(e.g. tdat1=9/4/2000 and tdat2=9/10/2000)


for appDate=request("tdat1") to request("tdat2")
response.write appDate & &quot;<br>&quot;
next

 
Try cast your dates to date-variables, u might want to add the &quot;step 1&quot; as well:


for appDate=cdate(request(&quot;tdat1&quot;)) to cdate(request(&quot;tdat2&quot;)) step 1
response.write appDate & &quot;<br>&quot;
next


Stian Haugen
Web-Developer

&quot;Dodge this&quot; -trinity, The Matrix 1999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top