dayAsString function

String dayAsString (
  1. DateTime date
)

Returns given DateTime's day as a # String formatted DD (ex. '04').

Implementation

String dayAsString(DateTime date) {
  return formatDate(date: date, format: 'DD');
}