title: How to get 30 days before data from current date. How to take two date one date from session and next data (session+30) in mysql
body: <p>I want to take only two date one date from current login(session) and next date (current+30) in between operator.</p>
  
  <p>WHERE "
                                                      "<code>it_service_ticket</code>.<code>request_date</code> BETWEEN ? AND ? "</p>
  
  <p>first ?="current time"
  second ?="current time" +30 days</p>
  
  <pre><code>PreparedStatement pst = con.prepareStatement(sql);
  pst.setDate(1, new Date(session.getCreationTime()));
  pst.setDate(2, new Date(session.getCreationTime())-30);
  </code></pre>
  
  <p>how to possible</p>