formatDate static method
String
formatDate(
- BuildContext context,
- DateTime value, {
- required DraftModePlatformStyle style,
Implementation
static String formatDate(
BuildContext context,
DateTime value, {
required DraftModePlatformStyle style,
}) {
final locale = Localizations.localeOf(context).toLanguageTag();
if (style.isAndroid) {
return DateFormat.yMMMd(locale).format(value);
}
return DateFormat(_paddedDatePattern(locale), locale).format(value);
}