Create a new SimpleDataFormat instance per invocation as the SimpleDateFormat class is not thread safe.

As per the subject, see also @alex-berger's comments on #62

Turning dateFormat into a function seemed preferable to duplicating the instantiation code.