mirrored_repositories/liquitech/lib
extension DateHelpers on DateTime{
  bool isToday(){
    final now=DateTime.now();
    return now.day==day && now.month==month && now.year==year;
  }
  bool isYesterday(){
    final yesterday=DateTime.now().subtract(const Duration(days:1));
    return yesterday.day==day && yesterday.month==month && yesterday.year==year;
  }
}