Working with Java’s date and time API can be tricky, especially when your database column uses LocalDateTime but the query…