made a method to return a date