String dateFormat(String format) { if (isEmpty) return ''; return DateFormat(format).format(DateTime.parse(this)); }