toShortDate method

String toShortDate()

Format DateTime as Short Date: MM/DD/YYYY

Implementation

String toShortDate() {
  return '${month.toString().padLeft(2, '0')}/${day.toString().padLeft(2, '0')}/$year';
}