added date helper method