SPARK-1278: Fix improper use of SimpleDateFormat

`SimpleDateFormat` is not immutable and thread-safe. Some places use the same SimpleDateFormat object without safeguard in the multiple threads. It will cause that the Web UI displays improper date.

This PR creates `SimpleDateFormat` when it's necessary. Another solution is using `ThreadLocal` to store a `SimpleDateFormat` in each thread. If this PR impacts the performance, I can change to the latter one.