day 1.1.0
day: ^1.1.0 copied to clipboard
A Dart date library inspired by Day.js, with nearly the same API. It is built on top of the powerful DateTime class.
// View https://github.com/dayjs/day.dart for more usage.
import 'package:day/day.dart';
void main() {
final now = Day();
// Tomorrow
final tomorrow = now.add(1, 'date');
print(tomorrow);
// Chainable
now
..setYear(2020)
..setMonth(1)
..setDate(1)
..finished();
// Gets year
print(now.year());
}