added helper to display dates in different formats