title: Crudrepository How to find by last date between?
body: <p>My domain has and Date field updated, that I want to search by</p>
  
  <pre><code>@Column(name = "updated")
  Date updated;
  </code></pre>
  
  <p>I have a Java Date object representing a day, that's passed in by my endpoint's controller.</p>
  
  <pre><code>Date day;
  </code></pre>
  
  <p>and a crudrepository representing my data</p>
  
  <pre><code>public interface DataRepository extends CrudRepository&lt;Data, Long&gt; {
  
     List&lt;Data&gt; findByLastUpdatedInDate(Date date);
  
  }
  </code></pre>
  
  <p>Obviously the above method doesn't work, but is there something similar?  Or am I going to have to do a find between then manually search for the last entry?</p>
  
  <p>Edit: Here's how I get day; dateString is passed in by the controller.</p>
  
  <pre><code>SimpleDateFormat dateFormatIn = new SimpleDateFormat("yyyy-MM-dd");
  Date day = dateFormatIn.parse(dateString);
  </code></pre>