How to filter date field as a user filter on record type?

Certified Associate Developer

Hi All,

I have a scenario where i need to filter the data from db based on the date. Filter values will be something like below.

Today

Yesterday

Last 7 days

FYI,

In Db,  date column is stored in date time format.

Can an someone suggest me how to achieve the filtering thing from db based on the date when db value is date time?

Thanks 

  Discussion posts and replies are publicly visible