Allow date objects to be passed in as params