Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot format given Object as a Date

Eugen LangOct 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

Added on Oct 24 2022
2 comments
1,696 views