parse static method

ModelDate parse(
  1. String formattedString
)

Parse from formattedString and convert to ModelTimestamp.

If the conversion fails, a FormatException is raised.

formattedStringからパースしてModelTimestampに変換します。

変換に失敗した場合はFormatExceptionが発生します。

Implementation

static ModelDate parse(String formattedString) {
  final dateTime = DateTime.parse(formattedString);
  return ModelDate(dateTime);
}