toShortDate method
Format DateTime as Short Date: MM/DD/YYYY
Implementation
String toShortDate() {
return '${month.toString().padLeft(2, '0')}/${day.toString().padLeft(2, '0')}/$year';
}
Format DateTime as Short Date: MM/DD/YYYY
String toShortDate() {
return '${month.toString().padLeft(2, '0')}/${day.toString().padLeft(2, '0')}/$year';
}