date method

String date(
  1. DateTime value, [
  2. int maxWidth = 0
])

Date value formatter

Implementation

String date(DateTime value, [int maxWidth = 0]) {
  if (isRaw) {
    return value.toString();
  }
  return string(dateFormat.format(value), maxWidth, true);
}