parseUtc method

DateTime parseUtc(
  1. String inputString
)

Given user input, attempt to parse the inputString into the anticipated format, treating it as being in UTC. If inputString does not match our format, throws a FormatException.

The canonical Dart style name is parseUtc, but parseUTC is retained for backward-compatibility.

Implementation

DateTime parseUtc(String inputString) => parse(inputString, true);