dateFormatDMIncome static method
Implementation
static String dateFormatDMIncome(DateTime? time) {
if (DateTime.now().year == time?.year) {
return DateFormat(
"dd.MM",
LocalStorage.getLanguage() == "kiril"
? "uz"
: LocalStorage.getLanguage())
.format(time ?? DateTime.now());
}
return DateFormat(
"dd.MM.yy",
LocalStorage.getLanguage() == "kiril"
? "uz"
: LocalStorage.getLanguage())
.format(time ?? DateTime.now());
}