String? withFormat(format) { if (this == null) return null; return DateFormat(format).format(this); }