support for formatting plain dates, not just datetimes