title: Extract all the tweets by giving date as the parameter
body: <p>I want to extract all the tweets of the week using twitter4j lib in java. I tried doing it like below</p>
  
  <pre><code>try {
              Query query = new Query("since:2013-04-01&amp;until:2013-04-08");
              QueryResult result;
              do {
                  result = twitter.search(query);
                  List&lt;Status&gt; tweets = result.getTweets();
                  for (Status tweet : tweets) {
                      System.out.println("@" + tweet.getUser().getScreenName() + " - " + tweet.getText());
                  }
              } while ((query = result.nextQuery()) != null);
              System.exit(0);
  </code></pre>
  
  <p>But, I ended up with an error message </p>
  
  <pre><code>403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
  message - Missing or invalid url parameter
  code - 195
  </code></pre>
  
  <p>So, how do i get the tweets by giving dates as parameters? Thanks</p>