formatTimestampForWithOffset function
- DateTime dateTime
Format a DateTime object to a string in the local timezone format.
dateTime - DateTime object
Returns a string in the format of yyyy-MM-ddTHH:mm:ss.SSSZ.
Implementation
String formatTimestampForWithOffset(DateTime dateTime) {
return DateFormat('yyyy-MM-ddTHH:mm:ss.SSSZ').format(dateTime);
}