Added method to return the date using a given date format.