Search packages, repositories and app categories

Package detailsv1.1.0

day

A date library Day.js in dart. Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.4K
Likes
22
Pub points
160

Install package

flutter pub add day

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Day.dart is a Dart date library inspired by Day.js, offering a simple and intuitive API for working with dates and times. Built on top of Dart's native DateTime class, it provides a lightweight, chainable interface for parsing, manipulating, and formatting dates. With near-identical syntax to Day.js, it enables developers to write consistent date-handling code across Flutter and web applications. Ideal for projects requiring minimal overhead and maximum readability in date operations.

Use cases

  • Parsing and formatting dates
  • Date arithmetic and manipulation
  • Internationalization support
  • Client-side date handling in Flutter apps
  • Simplifying date logic in web applications

Key features

  • Chainable API
  • Lightweight and fast
  • Same syntax as Day.js
  • Supports multiple platforms
  • Built on Dart's DateTime class

Suitable for

  • Flutter developers familiar with Day.js
  • Web and mobile apps needing date utilities
  • Projects prioritizing API consistency
  • Developers seeking lightweight date libraries
  • Teams using similar date patterns across platforms

Considerations

  • Limited to basic date operations
  • No built-in timezone support
  • Depends on Dart's DateTime for core functionality
  • Not suitable for complex calendar systems
  • Requires manual handling of locale-specific formatting

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Day.dart logo

Day.dart

A date library Day.js in dart.

Pub Version Dart GitHub License

Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

[!NOTE] After Day.dart v1.0.0, the minimum Dart SDK version is 3.0.0. If you are using an older version of Dart, please use Day.dart v0.8.0.

Features

  • 🕒 Nearly the same API as Day.js
  • 💪 Contains Immutable Methods
  • 🔗 Chainable
  • 👀 Useful formatting method
  • ⚙️ Plugin system
  • 🌐 I18n support
Documentation

License

Distributed under the MIT License.

Categories

Source repository

Projects using this package

No data available yet.