format_date 0.0.5
format_date: ^0.0.5 copied to clipboard
To be able to format dates, all you need is to provide a datetime object and a desired formatting as String, as input to one of the two functions - formatDate or formatTime.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add format_dateThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
format_date: ^0.0.5Alternatively, 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:format_date/format_date.dart';