Issue
what's the best way of storing database date in spring boot entity?
For example, in my db I need to store smth like 2021-02-19 17:00
and then build queries on this date in my spring boot applicaiton
Solution
Use LocalDateTime and the appropriate date column type in the database. Then you will be able to easily do date math (e.g. comparison) both in a database query and in Java if necessary.
Answered By - GreyBeardedGeek