format static method
String
format(
- DateTime dateTime, {
- dynamic format = 'yyyy-MM-dd HH:mm:ss',
- dynamic locale = 'id_ID',
Implementation
static String format(DateTime dateTime, {format = 'yyyy-MM-dd HH:mm:ss', locale = 'id_ID'}) {
initializeDateFormatting(locale);
return DateFormat(format, locale).format(dateTime);
}