Adding a date helper method