persian_date 0.1.1 copy "persian_date: ^0.1.1" to clipboard
persian_date: ^0.1.1 copied to clipboard

outdated

This library is Used For Jalali Date, Developer with this library can convert Gregorian date to Jalali date

example/persian_date_example.dart

import 'package:persian_date/persian_date.dart';

main() {

  PersianDate persianDate = PersianDate(gregorian: "1989-01-29");
  print("Now ${persianDate.getDate}");
  print("Now ${persianDate.Now}");
  print(persianDate.hour);
  print("year ${persianDate.year}");
  print("isHoliday ${persianDate.isHoliday}");
  print("isHoliday ${persianDate.weekdayname}");
  print(persianDate.monthname); // نام ماه
  print(persianDate.month); // ماه
  print(persianDate.day); // روز
  print(persianDate.hour);// ساعت
  print(persianDate.minute);// دقیقه
  print(persianDate.second);// ثانیه
  print(persianDate.millisecond); // میلی ثانیه
  print(persianDate.microsecond);//



  print(persianDate.jalaliToGregorian(1368, 05, 30)); // تبدیل تاریخ شمسی به میلادی اگر جدا کننده نداشته باشه به صورت یک لیست بر میگرداند


  print("${persianDate.parseToFormat("2018-12-10 09:36:13","D")}");
}
23
likes
0
pub points
64%
popularity

Publisher

verified publisherflutterfarsi.ir

This library is Used For Jalali Date, Developer with this library can convert Gregorian date to Jalali date

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on persian_date