general_datetime 5.0 — Multi-calendar DateTime support for Flutter & Dart

Hey Flutter community! :waving_hand:

I’m excited to share general_datetime 5.0.1, an open-source package I’ve been working on to make multi-calendar date handling easier in Flutter and Dart.

What does it support?

  • :date: Gregorian dates

  • :iran: Persian (Jalali) calendar

  • :star_of_david: Hebrew calendar

  • :red_envelope: Chinese calendar

  • :crescent_moon: Hijri (Umm al-Qura) calendar

  • :counterclockwise_arrows_button: Date conversions, parsing, and arithmetic

  • :mobile_phone: Flutter Material date-picker integration

Quick example:

final now = DateTime.now();

final persian = PersianDateTime.fromDateTime(now);
final hijri = HijriDateTime.fromDateTime(now);
final hebrew = HebrewDateTime.fromDateTime(now);

The goal is to make calendar-aware applications easier to develop, especially for multilingual and international users.

:package: pub.dev: https://pub.dev/packages/general_datetime

:laptop: GitHub: https://github.com/ali-you/general-datetime-package

I’d really appreciate feedback from the community!

  • What calendar features are missing?

  • What challenges have you faced with non-Gregorian dates in Flutter?

  • What would make this package more useful in your projects?

If you find it useful, a like on pub.dev would mean a lot and help other developers discover it. :heart:

Thanks for checking it out!