Dates across on the first row

Is there a way to insert dates across the first row of a sheet so that I can expand and collapse based on week or month. I feel like I have seen this before, but cannot find where a saw it before.

Thank you for your comments in advance.