java.lang.IllegalArgumentException

Cannot format given Object as a Date

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web132

  • via Unknown by 807594,
  • via Stack Overflow by Arnold Cristobal
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: Cannot format given Object as a Date at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.<init>(Throwable.java:94) at java.lang.Exception.<init>(Exception.java:42) at java.lang.RuntimeException.<init>(RuntimeException.java:47) at java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:43) at java.text.DateFormat.format(DateFormat.java:277) at java.text.Format.format(Format.java:129) at testDate.todaysDate(testDate.java:17) at testDate.main(testDate.java:23)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    zbalintzbalint
    4 times, last one
    johnxflyjohnxfly
    Once,
    musketyrmusketyr
    Once,
    DoktorDoener666DoktorDoener666
    3 times, last one
    MoYaproMoYapro
    12 times, last one
    16 more bugmates