smart_date_formatter 0.9.0
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_formatterThis 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.0Alternatively, 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';