TimezonedString extension
- on
Methods
-
toTzString(
bool inUtc, [int? numChars]) → String -
Available on DateTime, provided by the TimezonedString extension
Converts this date-time to a string in either local or UTC time zone. IfnumCharsis provided, the string will be truncated to that length. Note that isinUtcis true, 'z' will be appended to the string regardless ofnumChars.