List Creation with Dates

List Creation with Dates

I am at my limit on this one.

The user will enter a start date and an end date.  When they click submit, I want it to make a list of the dates in that range.

For example, user enters 4/15/2009 (start date) and 4/20/2009 (end date)
Then a list is created with 4/15/2009, 4/16/2009, 4/17/2009...



varDateDiff = (input.Start_Date - input.End_Date);
varDate = input.Start_Date;
listdate = List();
if (varDate  <=  input.End_Date)
{
    listdate.add(varDate);
    varDate = (varDate  +  '0W:1D:0H:0M:0S');
}
info listdate;