datetime_service_nwg 1.0.1 datetime_service_nwg: ^1.0.1 copied to clipboard
A new Flutter package with a customized TextButton.
date_time_picker #
[
This package will help us to get date time in some usefull formats. Don't need to rewrite code again and again.
Usage #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
datetime_service_nwg: "^1.0.0"
In your library add the following import:
import 'package:datetime_service_nwg/datetime_service_nwg.dart';
For help getting started with Flutter, view the online documentation.
Example #
DateTimeService.toYYMMDD(inputDate:date)
initialValue can be null
, empty
or a DateTime string
otherwise it will throw an error.
The result of val will be Time String:
- ex.: 2022-12-25;
- year, month, day;