在数据库中的日期函数比较,想在网页上进行生日提醒。
  我用月份相同,进行日期比较,但比较结果不准确。(好像是字符型比较了)
  请帮我看一下下面的代码错在哪里,如何修改?
   谢谢指教!
dim birth,dayth1,dayth2
                   birth=month(date())
                   dayth2=day(date())+3
                   dayth1=day(date())
set rs=server.createobject("adodb.recordset")
sql="select * from txl  where (month(srrq)= '"&birth&"')  and ( day(srrq) between  '"&dayth1&"' and '"&dayth2&"') order by srrq asc "
rs.open sql,conn,1,1