title: Auto expire post
body: <p>I have a adpost website and I want to add a feature where an ad changes status from 'active' to 'inactive' after 30 days. So what should be the query for that or JavaScript can do the job?</p>
  
  <p>Also please tell me how to do it.</p>