<!--#include file="../SQLconn.asp"-->
 
  <%    
    begindate=Request("begindate")
	enddate=Request("enddate")
	
   set rs=server.createobject("adodb.recordset")
  
   sql="delete from kaoqin where  convert(datetime,curdate)  BETWEEN   '"&begindate& "' AND  '"&enddate& "'"
   rs.open sql,conn,1,1
   rs.close

   
   set rs=nothing  
   conn.close
   set conn=nothing
   response.redirect   "Alljilu.asp?begindate="&begindate&"&enddate="&enddate
   
%>
 
<%=sql%>