Date.parse constructor

Date.parse(
  1. String formattedDate
)

Parses a formatted date.

Accepts the same formats as DateTime.parse, and throws away the time. Throws a FormatException if the input is not accepted.

Implementation

factory Date.parse(String formattedDate) => Date.from(DateTime.parse(formattedDate));