formatDateTime method now actually uses the pattern.
Previously it converted the date using a simple toString().
Authored by: keess 2014-02-06
Parent: [r2583]
Child: [r2585]