format method
Applies a DateFormat to this DateTime.
Implementation
String format([String template = 'MM/dd/yyyy KK:mm a', String locale = 'en_US']) {
return DateFormat(template, locale).format(this);
}
Applies a DateFormat to this DateTime.
String format([String template = 'MM/dd/yyyy KK:mm a', String locale = 'en_US']) {
return DateFormat(template, locale).format(this);
}