Provide error log messages. Move DateFormat to class level.