externalize date formatter