date_only 0.0.7 copy "date_only: ^0.0.7" to clipboard
date_only: ^0.0.7 copied to clipboard

class DateOnly

Present only date field (year, month, day)

Features #

DateOnly dateOnly = DateOnly.today();

print('year: ${dateOnly.year}');
print('month: ${dateOnly.month}');
print('day: ${dateOnly.day}');

Getting started #

dart pub add date_only

Usage #

import 'package:date_only/date_only.dart';

final DateOnly dateOnlyForToday = DateOnly.today();
final DateOnly dateOnlyFromDateTime = DateOnly.fromDateTime(DateTime(...));

Additional information #

Thank you very march :)

10
likes
0
pub points
66%
popularity

Publisher

unverified uploader

class DateOnly

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on date_only