Skip to content

๐Ÿ•’ DateTime Conversion & Extensions Library for Dart/Flutter: Simplify DateTime manipulation with bidirectional conversion between objects and strings, including timezone support. Contributions welcome!

License

Notifications You must be signed in to change notification settings

OrionWambert/crystal_datetime_format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DateTime Conversion and Extensions Library for Dart/Flutter

The DateTime Conversion and Extensions Library for Dart/Flutter is a powerful and versatile tool designed to simplify the manipulation of DateTime objects in your projects. This library provides bidirectional conversion features between DateTime objects and strings, along with useful extensions to optimize the use of DateTime objects, including timezone support.

Key Features

  • Simplified Conversion: Easily transform DateTime objects into formatted strings for display or storage, and also perform the reverse conversion.

  • Timezone Support: Effortlessly handle timezones when converting DateTime objects to strings and vice versa, making it ideal for applications with international users.

  • Utility Extensions: Benefit from a set of extensions for DateTime objects, such as calculating time differences, adding or subtracting durations, date comparison, and much more.

Usage Examples

Conversion from DateTime to Strings

import 'package:crystal_date_time_format/crystal_date_time_format.dart';

void main() {
  CrystalFmt formatter = CrystalFmt.ofPattern(formatStyle: CrystalFormatStyle.DMY);
  print(
      "Date : ${formatter.format(dateTime: DateTime.now())}");
}

About

๐Ÿ•’ DateTime Conversion & Extensions Library for Dart/Flutter: Simplify DateTime manipulation with bidirectional conversion between objects and strings, including timezone support. Contributions welcome!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages