Validation of strapi filed

  • Node.js version: 16.13.1
  • NPM version: 8.3,2
  • Strapi version: 4.0.3
  • Database:
  • Operating system: Windows 10 64 bit

i made one controller in that i set date filed now i want that if the date is already gone then that entry not appear in the api some amount of logic i know that it will be done in the custom controller but the method and proper way is not known

Thank you in advance