SELECT * FROM tblPaymentDetail WHERE appPaymentDate >= DATEADD(day, -5, GetDate())
select * from table where day(appPaymentDate ) between (day(getdate())-5) and (day(getdate()))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)