java.lang.IllegalArgumentException: Cannot format given Object as a Date

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by T8Z
, 1 year ago
Cannot format given Object as a Date
via Stack Overflow by Samir Mangroliya
, 2 years ago
Cannot format given Object as a Date
via scala-lang.org by Unknown author, 2 years ago
Cannot format given Object as a Date
via Coderanch by Isaac Ferguson, 1 year ago
Cannot format given Object as a Date
via Coderanch by sanjay kams, 1 year ago
Cannot format given Object as a Date
via Oracle Community by 843854, 1 year ago
Cannot format given Object as a Date
java.lang.IllegalArgumentException: Cannot format given Object as a Date
at java.text.DateFormat.format(DateFormat.java:301)
at java.text.Format.format(Format.java:157)
at test.CleanDirectory.main(CleanDirectory.java:20)

Users with the same issue

4 times, 6 months ago
Once, 9 months ago
Once, 10 months ago
3 times, 1 year ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.