javautilDate
java.util.Date is a class in the Java standard library that represents a specific instant in time, with millisecond precision. It stores the time as the number of milliseconds elapsed since the epoch, 1970-01-01T00:00:00Z. The value can be retrieved with getTime() and modified with setTime(long). The toString() method formats the date using the system's default time zone and locale.
Constructors for java.util.Date include Date() for the current time and Date(long date) for a date given as
java.util.Date implements Serializable and is comparable to other Date instances. It provides methods such as after(Date
Limitations and deprecation: Many methods that access calendar fields directly, such as getYear(), getMonth(), getDate(), getHours(),
Modern usage: In contemporary code, java.time.Instant is preferred for timestamps, with conversions to and from Date