21 lines
289 B
Dart
21 lines
289 B
Dart
/// Date formatting for shop log and product history.
|
|
library;
|
|
|
|
const _months = [
|
|
'Jan',
|
|
'Feb',
|
|
'Mar',
|
|
'Apr',
|
|
'May',
|
|
'Jun',
|
|
'Jul',
|
|
'Aug',
|
|
'Sep',
|
|
'Oct',
|
|
'Nov',
|
|
'Dec',
|
|
];
|
|
|
|
String formatDate(DateTime date) =>
|
|
'${date.day} ${_months[date.month - 1]} ${date.year}';
|