format method
- DateTime date
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 = StringBuffer();
for (var field in _formatFields) {
result.write(field.format(date));
}
return result.toString();
}