jalali_date
Persian (Jalali, Shamsi) calendar for Dart and Flutter.
dart pub add jalali_date- v1.0.0
- Dart
- Apache-2.0
Persian (Jalali, Shamsi) calendar for Dart. It converts between Gregorian and Jalali dates in both directions, knows leap years and month lengths, and formats dates with Persian month and weekday names. The conversion is a port of jalaali-js, so century years and leap cycles are handled correctly. It is pure Dart and works on the Web, Flutter, and the Dart VM.
Installation
sh
dart pub add jalali_dateOr with Flutter:
sh
flutter pub add jalali_dateUsage
dart
import 'package:jalali_date/jalali_date.dart';