make date_formatter a function here