Results 1 to 3 of 3

Thread: How to concate and display 2 Dates in a dropdownlist?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    52

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How to concate and display 2 Dates in a dropdownlist?

    I don't understand, your request is too ambiguous. Try to explain again.

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    52

    Re: How to concate and display 2 Dates in a dropdownlist?

    Well it pretty simple how I explained it.

    I figured it out anyways.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width