using a helper to format the date