format method

String format(
  1. String formatText
)

Converts DateTime to format format.

Just wrap DateFormat with this method.

Implementation

String format(String formatText) {
  return DateFormat(formatText).format(this);
}