Issue #2142367: convert date() calls to format_date().
updating api