format method

String format(
  1. DateTime date
)

Format the given date and return the formatted string.

Implementation

String format(DateTime date) => map((token) => token.format(date)).join();