dateFormatted static method
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;
}