getDay static method

String getDay(
  1. DateTime dateTime
)

Implementation

static String getDay(DateTime dateTime) {
  String day = dateTime.day.toString();
  return (day.length == 1 ? '0' : '') + day;
}