Skip to Main Content

Java Development Tools

Announcement

Testing banner

Cannot format given Object as a Date

User_BMQ12Oct 24 2022

Hi all! I have an oracle table that has a date column. I want to create a variable inside code with current date and do some table date condition with current date. Now when I initialize the current date - for some reason (it can be seen in the logs) it is equal to 1970-01-01. And it comes up with an error like "Cannot format given Object as a Date". It can be seen in the log. Could you suggest what is the problem?

view.png
code.png
log.png

Comments
Post Details