smart_date_formatter 0.9.0 copy "smart_date_formatter: ^0.9.0" to clipboard
smart_date_formatter: ^0.9.0 copied to clipboard

A smart Flutter date formatting utility that converts DateTime into human-readable strings like '2 hours ago', 'Yesterday', 'Next Monday', and more.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add smart_date_formatter

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  smart_date_formatter: ^0.9.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:smart_date_formatter/smart_date_formatter.dart';
15
likes
160
points
491
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A smart Flutter date formatting utility that converts DateTime into human-readable strings like '2 hours ago', 'Yesterday', 'Next Monday', and more.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smart_date_formatter