parse method

Moment parse (String date)

Constructs a new Moment instance based on formattedString.

Throws a FormatException if the input cannot be parsed. The function parses a subset of ISO 8601 which includes the subset accepted by RFC 3339.

Implementation

static Moment parse(String date) {
  return new Moment.fromDate(DateTime.parse(date));
}