public static formatDate(value as DateTime = DateTime.now) as String
Formats a mail date using its calendar fields and actual UTC offset.
| Parameter | Description |
|---|---|
value | Date to format; the default is the current local date. |
A mail date with a numeric timezone, including minute offsets.
print(MailSupport.formatDate(DateTime(2026, 1, 1, timeZone=TimeZone.UTC)))