toFormat method
Return String in supplied format
or defaultTimestampFormat = yyyy-MM-dd HH:mm:ss
Implementation
String toFormat({String format = defaultDateTimeFormat}) =>
DateFormat(format).format(this);
Return String in supplied format
or defaultTimestampFormat = yyyy-MM-dd HH:mm:ss
String toFormat({String format = defaultDateTimeFormat}) =>
DateFormat(format).format(this);