<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def on_date(self, date: datetime.date) -> dict: """Get statistics for a certain date."""

        return await self._request(
            'get', 'dailystats/{0}'.format(date.strftime('%Y-%m-%d')))