make dateformat be a thread-local