format method
Return a string representing date
formatted according to our locale
and internal format.
Implementation
String format(DateTime date) {
// TODO(efortuna): read optional TimeZone argument (or similar)?
var result = new StringBuffer();
_formatFields.forEach((field) => result.write(field.format(date)));
return result.toString();
}