## Uses of Class
com.comtrade.ecm.engine.datatypes.Date

- Packages that use Date
  Package | Description
  --- | ---
  com.comtrade.ecm.engine.datatypes | Additional DataTypes. All of them must implement `DataType` interface.

- - ### Uses of Date in com.comtrade.ecm.engine.datatypes

    Methods in com.comtrade.ecm.engine.datatypes that return Date
    Modifier and Type | Method and Description
    --- | ---
    `Date` | Date.`add(long amountToAdd, Date.Unit unit)` Changes a current value of an object for `amountToAdd` units of `unit`
    `static Date` | Date.`now()` Creating a date with a current `Date` value.
    `static Date` | Date.`of(Date date)` Creating a date from a `Date`.
    `static Date` | Date.`of(DateTime dateTime)` Creating a date from a `DateTime`
    `static Date` | Date.`of(java.time.LocalDate localDate)` Creates a date from a `LocalDate`
    `Date` | DateTime.`toDate()`
    `Date` | Date.`toEndOfYear()`
    `Date` | Date.`toStartOfYear()`

    Methods in com.comtrade.ecm.engine.datatypes with parameters of type Date
    Modifier and Type | Method and Description
    --- | ---
    `int` | DateTime.`compareTo(Date other)` Compares an object with another `Date` object.
    `int` | Date.`compareTo(Date other)` Compares an object with another `Date`-object.
    `boolean` | DateTime.`isSameDateAs(Date otherDate)` Compares an object to another `Date`-object.
    `static DateTime` | DateTime.`of(Date date)` Creating a datetime from a `Date`.
    `static Date` | Date.`of(Date date)` Creating a date from a `Date`.
    `static DateTime` | DateTime.`of(Date date, Time time)` Creating a datetime from a `Date` and a `Time`
    `static java.lang.String` | Date.`toString(Date date, java.time.format.DateTimeFormatter formatter)` Converts `date` to `String`, using `formatter`, following all other rules of formatting.
    `static java.lang.String` | Date.`toString(Date date, java.util.Locale locale)` Converts `date` to `String`, using `locale`, following all other rules of formatting.
    `static java.lang.String` | Date.`toString(Date date, java.lang.String formatDescription)` Converts `date` to `String`, using `formatDescription`, following all other rules of formatting.