fixed date formatter to display date-only values correctly

fixes #5448