nmFormatDate function

String nmFormatDate(
  1. BuildContext context,
  2. DateTime date
)

Medium date for the current locale ("Jun 2, 2026").

Implementation

String nmFormatDate(BuildContext context, DateTime date) {
  try {
    return DateFormat.yMMMd(_tag(context)).format(date);
  } catch (_) {
    return DateFormat.yMMMd('en').format(date);
  }
}