date is set to yesterday if no date parameter given