date_only 0.1.10 copy "date_only: ^0.1.10" to clipboard
date_only: ^0.1.10 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
120
pub points
56%
popularity

Publisher

unverified uploader

class DateOnly

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on date_only