simple_date 1.1.1

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

A simple date model for Dart with no notion of time. Useful for applications that rely on date-only events such as birthdays, anniversaries, and date ranges.

Simple Date

A simple date class with no notion of time.

Can be used as a simpler alternative to Dart's DateTime.

Usage

final today = SimpleDate.today();
final moonLanding = SimpleDate(1969, 07, 20);

print(today.isAfter(moonLanding)); // true

final birthday = SimpleDate(1998, 07, 20);
final age = birthday.difference(today);
print(age); // My current age!

Features and bugs

Please file feature requests and bugs at the GitHub repository.