Ok. Should be fairly straight-forward.
First of all, you need to get the date exactly one month ago.
Code:
Dim dteLastMonth: dteLastMonth = DateAdd("m", -1, Date())
Then get the difference in days from then to now, loop through that number of times, adding one day at a time.
Code:
Dim intDiff, i, dteIncrement
intDiff = DateDiff("d", dteLastMonth, Date())
Response.Write "<select name=""dteChooser"">"
For i = 0 To intDiff
dteIncrement = DateAdd("d", i, dteLastMonth)
Response.Write "<option value=""" & dteIncrement & """>" & dteIncrement & "</option>" & VbCrLf
Next
Response.Write "</select>"
Make sense?
Regards.
Bookmarks