date_utils icon indicating copy to clipboard operation
date_utils copied to clipboard

Dart utilities for working with DateTime objects

Results 12 date_utils issues
Sort by recently updated
recently updated
newest added

The package doesn't seem to support web. any plan to add web support?

` final daysJuly = DateUtils.daysInMonth(DateTime.utc(2021, 7, 1)); for (var day in daysJuly) { print(day.toUtc().toString()); } ` ![image](https://user-images.githubusercontent.com/14903011/126775357-13e05811-8fce-4eec-ab20-a2a735640555.png)

The documentation states to use the Utils class, and I'm only able to access this via DateUtils. Is the correct or should the documentation be updated ? I've checked I've...

It need for flutter calendar localization. default locale is en (not en-US now.) please review this PR.

Hello, I really like your work, especially the calendar widget for flutter, as i use it in my app. And it is wonderful. But I would like to have the...

Utils.daysInMonth returns one more day. Method is not aware of TimeZone). I expect that daysInMonth should return list with the Sunday as the first element but this method returned Saturday...

Added choice of start day of week. You can choose to set Monday as the first day of the week instead of Sunday. Added tests for the new functionality.

I noticed that when the first weekday is a sunday an extra week is added in front. The fix is to do a modulus on the daysBefore so if it...

This branch adds the possibility to set a locale for the DateFormat. In case you want change the locale to support internationalisation. This is also tested and added a way...