dating 0.0.2 icon indicating copy to clipboard operation
dating: ^0.0.2 copied to clipboard

A sexy library with useful extensions for DateTime class

Dating #

A sexy library with useful extensions for DateTime class

Hecho en 🇵🇷 por Radamés J. Valentín Reyes

Importing #

import 'package:dating/dating.dart';

Examples #

  • isInRange extension. Returns true if this date is within the specified range.
DateTime from = DateTime(2001,9,11);
DateTime to = DateTime(2021,10,28);
DateTime selectedDate = DateTime(2016,5,27);
print(selectedDate.isInRange(from: from, to: to));
  • isInRange with onlyCheckDate optional parameter(false by default)

    DateTime from = DateTime(2001,9,11);
    DateTime to = DateTime(2021,10,28);
    DateTime selectedDate = DateTime(2016,5,27);
    print(selectedDate.isInRange(from: from, to: to, onlyCheckDate: true));
    
0
likes
100
pub points
37%
popularity

Publisher

unverified uploader

A sexy library with useful extensions for DateTime class

Documentation

API reference

License

Icon for licenses.GPL-3.0 (LICENSE)

More

Packages that depend on dating