getMonthDate method

String getMonthDate(
  1. DateTime dateTime
)

Implementation

String getMonthDate(DateTime dateTime) {
  String month = dateTime.month.toString();
  String date = dateTime.day.toString();
  return (month.length == 1 ? '0' : '') + month + '/' + (date.length == 1 ? '0' : '') + date;
}