org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: Apr near line 1, column 81
<p>I'm trying to query a list of data from the database witch depend on the date.</p>

<p>Here is my code:</p>

<pre><code>@Override
public List&lt;CoursChange&gt; listeTauxChange(Date datJourCchn) {

    Query q = sessionFactory.getCurrentSession().createQuery(
            "from CoursChange  c where c.datJourCchn="+datJourCchn);
    return q.list();

}
</code></pre>

<p>The error is:</p>

<blockquote>
  <p>org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: Apr near line 1, column 81 [from com.gtec.GestionChangeDevise.entity.CoursChange  c where c.datJourCchn=Mon Apr 18 00:00:00 WAT 2016]</p>
</blockquote>

<p>How is this caused and how can I solve it?</p>