daysUntil method

int daysUntil(
  1. DateTime other
)

Whole calendar days from this date to other (negative when other is earlier). today.daysUntil(birthday)

Implementation

int daysUntil(DateTime other) => DateTime.utc(other.year, other.month, other.day).difference(DateTime.utc(year, month, day)).inDays;