Date.fromString constructor
Implementation
factory Date.fromString(String date, {String pattern = 'yyyy-MM-ddTHH:mm:ssZ'}) {
var datetime = DateFormat(pattern).parse(date);
return Date(year: datetime.year, month: datetime.month, day: datetime.day);
}