String? getFormattedDate([String format = 'dd-MM-yyyy']) { if (this == null) return null; return DateFormat(format).format(this!); }