day 0.6.4

Dart native js
Flutter Android iOS web

A date library Day.js in dart. Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

example/main.dart

// 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();

  // Get year
  print(now.year());
}
3
likes
110
pub points
70%
popularity

A date library Day.js in dart. Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

Uploader

g1enyy0ung@gmail.com

License

MIT (LICENSE)

More

Packages that depend on day