parseDate static method

DateTime parseDate(
  1. String dateTime, {
  2. String datePattern = _DATE_PATTERN,
})

Parse Date

Implementation

static DateTime parseDate(String dateTime,
    {String datePattern = _DATE_PATTERN}) {
  return DateFormat(datePattern).parse(dateTime);
}