How do you create a date variable

How do you create a date variable


I am building a function and I'm trying to create a date variable... instead of a variable of type long:
DateToAdd = input.startDate.addWeek(WeekCount);

That creates a string for the variable DateToAdd... is there a way to do this?