Gregorian.fromDateTime constructor
Gregorian.fromDateTime(
- DateTime dateTime
Create a Gregorian date by using DateTime object
Implementation
factory Gregorian.fromDateTime(DateTime dateTime) {
return Gregorian(dateTime.year, dateTime.month, dateTime.day);
}