Three date-and-time types from java.time. Each one holds a different piece of the puzzle — pick the one that fits your data.
java.time package introduced LocalDate, LocalTime, and LocalDateTime — clean, immutable, easy to read.
YYYY-MM-DD (ISO 8601).YYYY-MM-DDTHH:mm:ss.Tip: change the date or time inputs above and watch the parts update. Every getter returns exactly what its name says — no surprises.