Skip to content
pubscout

date_kit

1.0.3, released 2 years ago by an unverified publisher

Dart package for DateTime manipulation, formatting, and parsing operations.

WASM-ready
$ flutter pub add date_kit
Source repository

What it does

Provides a comprehensive set of functions and extension methods for DateTime objects in Dart. It supports adding durations, calculating differences, parsing, formatting, and checking date states.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to perform complex date and time calculations in Dart.
  • You want to format and parse dates using custom patterns.
  • You need convenient extension methods on DateTime instances.

Skip it when

  • You only need basic native DateTime functionality without extra helpers.

Strengths

  • Extensive collection of date and time helper functions and extensions.
  • Includes formatting and parsing capabilities.
  • Inspired by the popular date-fns library.

Weaknesses

  • Relies on the intl package which may add code size.
  • Limited to what is provided out-of-the-box for specialized timezones.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
DateTime date = DateTime(2024, 1, 1);
date = date.addDays(5);
String formatted = format(date, 'dd.MM.yyyy');

Alternatives

Packages that do the same job and could replace date_kit.

  • black_hole_flutter

    Flutter utility functions, extension methods, and custom widgets.

  • super_dates

    Type-safe Dart DateTime API extensions separating dates, local date-times, and UTC date-times.

  • dart_date

    Date manipulation library providing DateTime extensions and an Interval object.

  • fixed

    Fixed decimal numbers with a fixed scale, stored as BigInts, supporting math, formatting and parsing.

Works with

Packages commonly used together with date_kit: ones it builds on, ones built on it, and its own family.