Answers for "how to check if two dates are same in flutter"

0

how to check if two dates are same in flutter

extension DateOnlyCompare on DateTime {
  bool isSameDate(DateTime other) {
    return this.year == other.year && this.month == other.month
           && this.day == other.day;
  }
}
Posted by: Guest on April-19-2021

Code answers related to "how to check if two dates are same in flutter"

Browse Popular Code Answers by Language