小妹现改版一网站,原来是asp的,其中有这么一句话:searchday=" DATEDIFF(day,dateandtime,GetDate()) < 30,这句话后来放到一条sql语句中,请问在.net中应如何实现?