add localize option to format_date