Allow to pass custom date format to function format_date().