title: Date time between not working in typescript with typeorm in postgresql
body: <p>I want to retrieve data between given date time range.
  When I try to retrieve data from DBeaver tool, it'll return all the data.
  here is my query tried</p>
  
  <pre><code>SELECT id, "vehicleNo", "vehicleClass",  "issuedOn", "modifiedOn", "paidOn","ticketStatusId"
  FROM public.ticket where "paidOn" &gt;= '2019-04-16 02:30:00 AM' and "paidOn" &lt;= '2019-04-16 11:30:00 AM';
  </code></pre>
  
  <p>But when I use typeorm then,it will not return all the data
  here is my typeorm code</p>
  
  <pre><code>const records = await getConnection().getRepository(Ticket)
                  .createQueryBuilder("ticket")
                  .innerJoinAndSelect("ticket.ticketStatus", "ticketStatus")
                  .where(`ticket.paidOn &gt;= :startDate AND ticket.paidOn &lt;= :endDate
                  AND ticket.modifiedBy = :email AND ticketStatus.title = :status `,
                      { startDate: fromDate, endDate: toDate, email: uemail, status: "Paid"})
                  .orderBy("ticket.paidOn", "DESC")
                  .getMany();
  </code></pre>
  
  <p>here is the correct dataset has to return. (8 records)
  <a href="https://i.stack.imgur.com/1q1hC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1q1hC.png" alt="enter image description here"></a></p>
  
  <p>but it's returning 4 records only
  <a href="https://i.stack.imgur.com/DgZhl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DgZhl.png" alt="enter image description here"></a></p>