add localize option to format_date

this enables user to output dates and times in the local time zone