asYear method

DateTime asYear()

Implementation

DateTime asYear() {
  return DateTime(year);
}