toFormattedString method
Implementation
toFormattedString({String outputDateFormat = 'yyyy-MM-dd', String locale = "ID"}) {
if (this == null) return '-';
return DateFormat(
outputDateFormat,
locale,
).format(this ?? DateTime.now());
}
toFormattedString({String outputDateFormat = 'yyyy-MM-dd', String locale = "ID"}) {
if (this == null) return '-';
return DateFormat(
outputDateFormat,
locale,
).format(this ?? DateTime.now());
}