date_utils
Dart utilities for working with DateTime objects
View on GitHub ↗Archived
- Stars
- 80
- Forks
- 53
- Last push (UTC)
- Dec 28, 2023
- Project status
- Archived
Original README
English project snapshot. Visit GitHub for the latest content.
date_utils
A Dart library to manipulate DateTimes. Useful for creating calendar functionality.
Example
See Packages:
Usage
- Add the following to your pubspec.yaml:
dev_dependencies:
date_utils: ^0.2.0
-
Run
dart pub get -
Import the package in your Dart code
import 'package:date_utils/date_utils.dart';
- Use the
Utilsclass.
// example
var date = new DateTime(2017, 3);
var lastDay = Utils.lastDayOfMonth(date);
print(lastDay.day);
// => 31
LanguagesDart
Dependencies used
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- johnpryan/date_utils · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗