PgDate.fromDateTime constructor

PgDate.fromDateTime(
  1. DateTime dateTime
)

Implementation

PgDate.fromDateTime(DateTime dateTime)
    : _dateTime = dateTime,
      year = dateTime.year,
      month = dateTime.month,
      day = dateTime.day;