title: How to set datetime in spring jdbctemplate query?
body: <p>I need to execute a query using spring jdbctemplate. </p>
  
  <pre><code>@Autowired
  JdbcTemplate jdbcTemplate;
  
  jdbcTemplate.query("select * from my_table where member_id = ? and start_date in (?)", new Object[]{10, Arrays.asList(new Date()), myRowMapper)
  </code></pre>
  
  <p>But i got this error:</p>
  
  <pre><code>SQLWarning ignored: SQL state '22007', error code '1292', message [Truncated incorrect datetime value: '\xAC\xED\x00\x05sr\x00\x13java.util.ArrayListx\x81\xD2\x1D\x99\xC7a\x9D\x03\x00\x01I\x00\x04si 
  </code></pre>
  
  <p>I tried to change Date into java.sql.DateTime() but it still doesn't work. How can I make spring understand to format date correctly?</p>