title: Restrict search results to a specific date range in google custom search api
body: <p>In normal Google search, I can restrict search results to a specific date range using Tools:</p>
  
  <p><a href="https://i.stack.imgur.com/FTGqo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FTGqo.png" alt="Search in Google site"></a></p>
  
  <p>But when I use the same restriction with Google custom search API, all results are coming instead of the specific date range.</p>
  
  <p>Suppose I want search results published only on yesterday. Although I specify the date range in the parameters, all results are being shown. But it's supposed to return no results even if the news published earlier, not yesterday.</p>
  
  <p>I have seen this answer:<br>
  <a href="https://stackoverflow.com/questions/47665573/specifying-a-date-range-in-google-custom-search-api">Specifying a Date Range in Google Custom Search api</a></p>
  
  <p>but it doesn't work. </p>
  
  <p><a href="https://i.stack.imgur.com/1abT8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1abT8.png" alt="Implementation of google custom search"></a></p>
  
  <p>I want a solution, if it is possible or not to restrict search result to a specific date range. Do I need to change anything in my API dashboard?</p>