'How to search JPA QueryDSL date with yyyy-MM-dd format?

I am learning SpringBoot JPA's and I am trying to search a database by adding "creationDate=2022-02-02" as a parameter to my uri call. JPA automatically formats the date with a timestamp as "Wed Feb 2 00:00:00 CDT 2022". However, the dates in the databases have timestamps and I believe that since the timestamps do not match, there are no rows returned. How can I search simply by day?

For reference, this is code I inherited. The URI passes in parameters through a QueryDSL predicate. This is then passed into a generic service. I apologize if my understanding of the technologies is wrong.

Note: I can't post the code here as it is company property.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source