Add helper method for date rendering.