Best way to get maximum Date value in java?

Try

new Date(Long.MAX_VALUE)

which should give you the longest possible date value in Java.

Leave a Comment