dating 0.0.3+4 copy "dating: ^0.0.3+4" to clipboard
dating: ^0.0.3+4 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
110
pub points
42%
popularity

Publisher

unverified uploader

A sexy library with useful extensions for DateTime class

Documentation

API reference

License

GPL-3.0 (LICENSE)

More

Packages that depend on dating