|
-
Jan 10th, 2006, 02:27 PM
#1
Thread Starter
Member
How to concate and display 2 Dates in a dropdownlist?
Hi,
How to add 2 dates in a row in DDL ( 12/26/2005 - 01/08/2006 )
Below is the code I use to make add dates by day, but I want add extra date like this example. ( 12/26/2005 - 01/08/2006 )
Thanks
Dim MyWeekDay As Integer
Dim i As Integer
i = 0
Do While (i <= 30)
MyWeekDay = Weekday(Today.AddDays(i))
If MyWeekDay = 1 Then
DropDownList1.Items.Add(Today.AddDays(i).ToString("d"))
End If
i = i + 1
Loop
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|