## Uses of Class
java.util.Date

- Packages that use Date
  Package | Description
  --- | ---
  java.text |
  java.util |
  java.util.concurrent.locks | Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.

- - ### Uses of Date in java.text

    Methods in java.text that return Date
    Modifier and Type | Method and Description
    --- | ---
    `Date` | SimpleDateFormat.`get2DigitYearStart()` Returns the beginning date of the 100-year period 2-digit years are interpreted as being within.
    `Date` | DateFormat.`parse(String source)` Parses text from the beginning of the given string to produce a date.
    `Date` | SimpleDateFormat.`parse(String text, ParsePosition pos)` Parses text from a string to produce a `Date`.
    `abstract Date` | DateFormat.`parse(String source, ParsePosition pos)` Parse a date/time string according to the given parse position.

    Methods in java.text with parameters of type Date
    Modifier and Type | Method and Description
    --- | ---
    `String` | DateFormat.`format(Date date)` Formats a Date into a date/time string.
    `StringBuffer` | SimpleDateFormat.`format(Date date, StringBuffer toAppendTo, FieldPosition pos)` Formats the given `Date` into a date/time string and appends the result to the given `StringBuffer`.
    `abstract StringBuffer` | DateFormat.`format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)` Formats a Date into a date/time string.
    `void` | SimpleDateFormat.`set2DigitYearStart(Date startDate)` Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies.

  - ### Uses of Date in java.util

    Methods in java.util that return Date
    Modifier and Type | Method and Description
    --- | ---
    `Date` | Calendar.`getTime()` Returns a `Date` object representing this `Calendar`'s time value (millisecond offset from the Epoch").

    Methods in java.util with parameters of type Date
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | Date.`after(Date when)` Tests if this date is after the specified date.
    `boolean` | Date.`before(Date when)` Tests if this date is before the specified date.
    `int` | Date.`compareTo(Date anotherDate)` Compares two Dates for ordering.
    `abstract boolean` | TimeZone.`inDaylightTime(Date date)` Queries if the given `date` is in Daylight Saving Time in this time zone.
    `boolean` | SimpleTimeZone.`inDaylightTime(Date date)` Queries if the given date is in daylight saving time.
    `void` | Timer.`schedule(TimerTask task, Date time)` Schedules the specified task for execution at the specified time.
    `void` | Timer.`schedule(TimerTask task, Date firstTime, long period)` Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
    `void` | Timer.`scheduleAtFixedRate(TimerTask task, Date firstTime, long period)` Schedules the specified task for repeated fixed-rate execution, beginning at the specified time.
    `void` | Calendar.`setTime(Date date)` Sets this Calendar's time with the given `Date`.

  - ### Uses of Date in java.util.concurrent.locks

    Methods in java.util.concurrent.locks with parameters of type Date
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | Condition.`awaitUntil(Date deadline)` Causes the current thread to wait until it is signalled or interrupted, or the specified deadline elapses.
    `boolean` | AbstractQueuedSynchronizer.ConditionObject.`awaitUntil(Date deadline)` Implements absolute timed condition wait.
    `boolean` | AbstractQueuedLongSynchronizer.ConditionObject.`awaitUntil(Date deadline)` Implements absolute timed condition wait.

Copyright © 2025 API Design. All Rights Reserved.