In this lecture, you will examine the problems of the old date and time APIs in Java (
java.util.Date,
java.util.Calendar,
java.text.SimpleDateFormat) and get acquainted with the modern, safe, and convenient
java.time API (JSR‑310). You will understand the key advantages of immutable types, explicit time‑zone handling, formatting via
DateTimeFormatter, and also learn how to convert between the new and legacy code. In the end, we will consider common mistakes and how to avoid them.