Date.from constructor

Date.from(
  1. DateTime dt
)

Implementation

Date.from(DateTime dt)
    : year = dt.year,
      month = dt.month,
      day = dt.day;