jalali_date 0.1.4 jalali_date: ^0.1.4 copied to clipboard
Persian (Jalali) date for Dart (Web/Flutter/DartVm). This calendar is using in Iran, Afghanistan and other countries. with this plugin, you can convert Gregorian date to Persian date.
import 'package:jalali_date/jalali_date.dart';
main(List<String> arguments) async {
print(PersianDate.fromDateTime(DateTime.parse('2012-02-27 13:27:00.123456z'))
.toString(showTime: true));
print(PersianDate.now().toString(showTime: false));
}