toFormattedString method

String toFormattedString({
  1. String outputDateFormat = 'yyyy-MM-dd',
  2. String locale = "ID",
})

Implementation

String toFormattedString({String outputDateFormat = 'yyyy-MM-dd', String locale = "ID"}) {
  return DateFormat(outputDateFormat, locale).format(this);
}