day.dart logo

A date library Day.js in dart.

Pub Travis CI GitHub

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

Important: Day.dart use the extension syntax to implement plugins system. So the dart version must >= 2.7.0.

As Day.dart already migrated to null safety. So the minimum dart version is 2.12.0.

Features

  • 🕒 Nearly the same API as Day.js
  • 💪 Contains Immutable Methods
  • 🔗 Chainable
  • 👀 Useful formatting method
  • ⚙️ Plugin system
  • 🌐 I18n support

Documentation

License

Distributed under the MIT License.

Libraries

day
day_of_year
en
is_leap_year
quarter_of_year
relative_time
zh_cn