parse static method

DateTime parse(
  1. String date, {
  2. dynamic format = 'yyyy-MM-dd HH:mm:ss',
  3. dynamic locale = 'id_ID',
})

Implementation

static DateTime parse(String date, {format = 'yyyy-MM-dd HH:mm:ss', locale = 'id_ID'}) {
  return DateFormat(format, locale).parse(date);
}