format_date 0.0.4
format_date: ^0.0.4 copied to clipboard
To be able to format dates easily. You just need to provide a datetime object and a desire formatting as String, as input to one of the two functions - formatDate or formatTime, to get desired output.
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.4Alternatively, 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';