title: How do you get the date/time range for "today" using the Joda date/time library in Java?
body: <p>Assuming this is how you get the current time in <a href="http://www.joda.org/joda-time/" rel="noreferrer">Joda time</a>:</p>
  
  <pre><code>DateTime now = new DateTime();
  </code></pre>
  
  <p>How do you calculate values for the variables <code>dateTimeAtStartOfToday</code> and <code>dateTimeAtEndOfToday</code>?</p>
  
  <p>What I'm trying to do is generate some SQL to do a lookup of all transactions that have occurred between the <code>startOfToday</code> and <code>endOfToday</code>.</p>