toFormattedDate method
Implementation
String toFormattedDate({
String outputDateFormat = 'dd-MM-yyyy',
String originFormatDate = 'yyyy-MM-dd',
String originLocale = 'ID',
}) {
DateTime temp = toDateTime(originFormatDate: originFormatDate, locale: originLocale);
return temp.toFormattedString(outputDateFormat: outputDateFormat);
}