dateFormatDM static method
Implementation
static String dateFormatDM(DateTime? time) {
if (DateTime.now().year == time?.year) {
return DateFormat(
"d MMMM",
LocalStorage.getLanguage() == "kiril"
? "uz"
: LocalStorage.getLanguage())
.format(time ?? DateTime.now());
}
return DateFormat(
"d MMMM, yyyy",
LocalStorage.getLanguage() == "kiril"
? "uz"
: LocalStorage.getLanguage())
.format(time ?? DateTime.now());
}