Adam Saxton from Guy in a Cube shows in this YouTube video how to create a date table and explains why you need one.

It is created using these DAX statements:
GENERATE(), ROW() and CALENDARAUTO()