格式化日期
String format({String? pattern}) { return DateTimeFormatter.formatDate(this, pattern: pattern); }