格式化时间字符串
String? dateFormat(String pattern) { if (this == null) { return null; } var date = DateTime.parse(this!); return date.dateFormat(pattern); }