A new Date and Time API for JDK 8 9 years ago 4 min read JavaAPIJSRdateTime Date and time handling in Java is a somewhat tricky part when you are new to the language. Time can be accessed via the static method System.currentTimeMillis() which returns the current time