dateFormatted static method

String? dateFormatted(
  1. String value
)

Format the date.

Implementation

static String? dateFormatted(String value) {
  final date = convertToDate(value);
  if (date == null) return null;

  final dateString = DateFormat('MMM d, y').format(date);
  return dateString;
}