Avoid memory allocation when using date formating to StringBuffer.